{"action":"created","issue":{"url":"https://api.github.com/repos/zserge/jsmn/issues/4","labels_url":"https://api.github.com/repos/zserge/jsmn/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/zserge/jsmn/issues/4/comments","events_url":"https://api.github.com/repos/zserge/jsmn/issues/4/events","html_url":"https://github.com/zserge/jsmn/issues/4","id":109783802,"number":4,"title":"how to parse more complex type (array & objects)","user":{"login":"zserge","id":1911760,"avatar_url":"https://avatars.githubusercontent.com/u/1911760?v=3","gravatar_id":"","url":"https://api.github.com/users/zserge","html_url":"https://github.com/zserge","followers_url":"https://api.github.com/users/zserge/followers","following_url":"https://api.github.com/users/zserge/following{/other_user}","gists_url":"https://api.github.com/users/zserge/gists{/gist_id}","starred_url":"https://api.github.com/users/zserge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zserge/subscriptions","organizations_url":"https://api.github.com/users/zserge/orgs","repos_url":"https://api.github.com/users/zserge/repos","events_url":"https://api.github.com/users/zserge/events{/privacy}","received_events_url":"https://api.github.com/users/zserge/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-05T12:16:00Z","updated_at":"2015-10-05T12:16:01Z","closed_at":"2015-10-05T12:16:00Z","body":"I am just loving with new json parser.  It makes embedded designing a lot easier.  I have one question.  Would it be possible to show an example of how to parse complex tokens?  For example: \n\njs = \"\\\"x\\\": \\\"value1\\\", \\\"y\\\": \\\"value2\\\",  \\\"dsensor\\\": [\\\"s1\\\": 1, \\\"s2\\\": 0], \\\"asensor\\\": [\\\"a1\\\": 1.5, \\\"a2\\\": 0.8] \";\n\nHow to check the values?\n\ncheck(TOKEN_STRING(js, ??????));\ncheck(TOKEN_STRING(js, ??????));\ncheck(TOKEN_STRING(js, ??????));\ncheck(TOKEN_STRING(js, ??????));\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/zserge/jsmn/issue/4\n- Originally reported by: Anonymous\n- Originally created at: 2012-04-25T17:13:29.729\n"},"comment":{"url":"https://api.github.com/repos/zserge/jsmn/issues/comments/145509317","html_url":"https://github.com/zserge/jsmn/issues/4#issuecomment-145509317","issue_url":"https://api.github.com/repos/zserge/jsmn/issues/4","id":145509317,"user":{"login":"zserge","id":1911760,"avatar_url":"https://avatars.githubusercontent.com/u/1911760?v=3","gravatar_id":"","url":"https://api.github.com/users/zserge","html_url":"https://github.com/zserge","followers_url":"https://api.github.com/users/zserge/followers","following_url":"https://api.github.com/users/zserge/following{/other_user}","gists_url":"https://api.github.com/users/zserge/gists{/gist_id}","starred_url":"https://api.github.com/users/zserge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zserge/subscriptions","organizations_url":"https://api.github.com/users/zserge/orgs","repos_url":"https://api.github.com/users/zserge/repos","events_url":"https://api.github.com/users/zserge/events{/privacy}","received_events_url":"https://api.github.com/users/zserge/received_events","type":"User","site_admin":false},"created_at":"2015-10-05T12:16:01Z","updated_at":"2015-10-05T12:16:01Z","body":"tcousins..  your assumption is correct.  The json data stream is from http post response's body.  sorry for the json error.  I check the test example and its still isn't clear on how to handle/parse complex data such as  { \"x\" : \"value1\", \"y\" : \"value2\", \"dsensor\" : { \"s1\" : 1, \"s2\" : 0 }, \"asensor\" : { \"a1\" : 1.5, \"a2\" : 0.8 } }\r\n\r\nDoes any have any answer for parsing complex data stream?\n\n----------------------------------------\nOriginal comment by: Anonymous\n"}}