is correct json format?
{ "count": { "hbase": 66, "java": 63, "spring": 41, "sample": 39, "minify": 36, "ts-ws1": 28, "jprofiler": 26, "logging": 24, "scm": 24, "csrfguard": 20, "ldap": 19, "hadoop": 18, "jquery": 18, "android": 17, "ts-ws2": 17, "myplace": 16, "jvm": 16, "daily": 15, "oops": 15, "node.js": 15, "long": 15, "css3": 13, "html5": 13, "jms": 13, "ci": 11, "node": 11, "backlog": 11, "jsf": 10, "groovy": 10, "outofmemory": 9, "adf": 9, "exception": 9, "guidelines": 9, "abc": 9, "liferay": 8, "performance": 7, "groovy": 7, "jenkin": 7, "hadoop": 6, "learning": 6, "code": 6, "design": 6, "ctt4tl": 6, "": 6, "eclipse": 5, "templates": 5, "apache": 5, "node.js": 5, "analytics": 5, "cap": 4, "csrfguard": 4, "corba": 4, "pattern": 4, "est-ws1": 4, "web": 4, "formatter": 4, "minify": 4, "guava": 3, "oracle": 3, "security": 3, "checklists": 3, "lda": 3, "ana": 3, "bi": 3, "ctt4tl": 3, "est-ws2": 3, "exception": 3, "est-ws2": 3, "oop": 3, "how": 3, "hibernate": 3, "ldap": 2, "cxf": 2, "scala": 2, "interceptor": 2, "hudson": 2, "jenkins": 2, "sonar": 2, "viva": 2, "nfr": 2, "java7": 2, "css3": 2, "jpa": 2, "ppt": 2, "hudson": 2, "template": 2, "des-ws3": 2, "hadoop\/hbase": 1, "secur": 1, "csrf": 1, "db": 1, "university": 1, "abcd": 1, "jsa": 1, "logging": 1, "json": 1, "rm": 1, "ts-scm": 1, "nak": 1, "fad": 1, "presentation": 1, "est-ws1": 1, "terna": 1, "lucene": 1, "coding": 1, "log4j": 1, "jpa": 1, "theme": 1, "training": 1, "secu": 1, "build": 1, "css": 1, "project": 1, "solr": 1, "des-ws": 1, "intercep": 1, "test": 1 }, "date": monmay0612: 19: 48ist2013 }
i receive json on 1 of ajax call. , after receiving shows "parserror". code -
$.ajax({ type: "get", url: jsonurl + search_history_json + ext_json, datatype: "json", contenttype: "application/json", async : false, success: function(data) { }, error: function(xhr, status, error) { /* $("#tagcloud").html(getmessage(tagcloud.error)); $("#searchhistory").hide();*/ alert(status); console.log(status); } });
also please tell me how access data. should access data.data , data.count?
parse error on line 121: ... }, "date": monmay0612: 19: 48is ---------------------^ expecting 'string', 'number', 'null', 'true', 'false', '{', '['
you need put date -
"date": "monmay0612: 19: 48ist2013"
Comments
Post a Comment