{"action":"created","issue":{"url":"https://api.github.com/repos/DaveGamble/cJSON/issues/93","repository_url":"https://api.github.com/repos/DaveGamble/cJSON","labels_url":"https://api.github.com/repos/DaveGamble/cJSON/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/DaveGamble/cJSON/issues/93/comments","events_url":"https://api.github.com/repos/DaveGamble/cJSON/issues/93/events","html_url":"https://github.com/DaveGamble/cJSON/issues/93","id":202085088,"number":93,"title":"cJSON_Parse ","user":{"login":"henry0726","id":9047674,"avatar_url":"https://avatars.githubusercontent.com/u/9047674?v=3","gravatar_id":"","url":"https://api.github.com/users/henry0726","html_url":"https://github.com/henry0726","followers_url":"https://api.github.com/users/henry0726/followers","following_url":"https://api.github.com/users/henry0726/following{/other_user}","gists_url":"https://api.github.com/users/henry0726/gists{/gist_id}","starred_url":"https://api.github.com/users/henry0726/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henry0726/subscriptions","organizations_url":"https://api.github.com/users/henry0726/orgs","repos_url":"https://api.github.com/users/henry0726/repos","events_url":"https://api.github.com/users/henry0726/events{/privacy}","received_events_url":"https://api.github.com/users/henry0726/received_events","type":"User","site_admin":false},"labels":[{"id":476777260,"url":"https://api.github.com/repos/DaveGamble/cJSON/labels/needs%20info","name":"needs info","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-20T08:51:33Z","updated_at":"2017-01-20T14:06:27Z","closed_at":null,"body":"I copy cJSON.h and cJSON.c to my projects and use it.\r\n\r\n```c\r\nchar *strJson = \"{\\\"name\\\":\\\"abc\\\",\\\"mass\\\":151, \\\"command\\\":247}\";\r\ncJSON *root = cJSON_Parse(strJson);\r\nchar *print= cJSON_Print(root);\r\nprintf(\"[ParseJson] print= %s\\r\\n\", print);\r\n```\r\n\r\nThe result shows `{\"name\":\"abc\",\"mass\":0, \"command\":0 }`\r\ndouble quote, curly and square brackets is work. only number can't correct parse,\r\n\r\nThank you for your reply.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/DaveGamble/cJSON/issues/comments/274079677","html_url":"https://github.com/DaveGamble/cJSON/issues/93#issuecomment-274079677","issue_url":"https://api.github.com/repos/DaveGamble/cJSON/issues/93","id":274079677,"user":{"login":"FSMaxB","id":4294942,"avatar_url":"https://avatars.githubusercontent.com/u/4294942?v=3","gravatar_id":"","url":"https://api.github.com/users/FSMaxB","html_url":"https://github.com/FSMaxB","followers_url":"https://api.github.com/users/FSMaxB/followers","following_url":"https://api.github.com/users/FSMaxB/following{/other_user}","gists_url":"https://api.github.com/users/FSMaxB/gists{/gist_id}","starred_url":"https://api.github.com/users/FSMaxB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FSMaxB/subscriptions","organizations_url":"https://api.github.com/users/FSMaxB/orgs","repos_url":"https://api.github.com/users/FSMaxB/repos","events_url":"https://api.github.com/users/FSMaxB/events{/privacy}","received_events_url":"https://api.github.com/users/FSMaxB/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T14:06:27Z","updated_at":"2017-01-20T14:06:27Z","body":"This is what I get, when I run your code\r\n\r\n```\r\n[ParseJson] print= {\r\n        \"name\": \"abc\",\r\n        \"mass\": 151,\r\n        \"command\":      247\r\n}\r\n```\r\nSeems to work as expected.\r\n\r\nIn order to find out why it doesn't work for you, I need more information.\r\n* Please double check that your `cJSON.c` and `cJSON.h` are up to date.\r\n* What kind of system and compiler are you using?\r\n* If you have access to a debugger, try stepping through the functions `parse_number` and `print_number`"}}
{"actor":{"display_login":"FSMaxB"}}