{"action":"created","issue":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/308","repository_url":"https://api.github.com/repos/bblanchon/ArduinoJson","labels_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/308/labels{/name}","comments_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/308/comments","events_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/308/events","html_url":"https://github.com/bblanchon/ArduinoJson/issues/308","id":161028430,"number":308,"title":"How to copy a JsonObject ?","user":{"login":"jm4r7in","id":3028663,"avatar_url":"https://avatars.githubusercontent.com/u/3028663?v=3","gravatar_id":"","url":"https://api.github.com/users/jm4r7in","html_url":"https://github.com/jm4r7in","followers_url":"https://api.github.com/users/jm4r7in/followers","following_url":"https://api.github.com/users/jm4r7in/following{/other_user}","gists_url":"https://api.github.com/users/jm4r7in/gists{/gist_id}","starred_url":"https://api.github.com/users/jm4r7in/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jm4r7in/subscriptions","organizations_url":"https://api.github.com/users/jm4r7in/orgs","repos_url":"https://api.github.com/users/jm4r7in/repos","events_url":"https://api.github.com/users/jm4r7in/events{/privacy}","received_events_url":"https://api.github.com/users/jm4r7in/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-06-18T15:01:24Z","updated_at":"2016-06-27T07:49:07Z","closed_at":null,"body":"I would like to do something like that : \r\n````\r\nvoid loop() {\r\n  StaticJsonBuffer<200> jsonBuffer;\r\n  JsonObject& objectJSON = jsonBuffer.createObject();\r\n\r\n  if (stringComplete) {\r\n    // parse string to objectJSON \r\n  }\r\n\r\n  doSomethingWith(objectJSON );\r\n\r\n}\r\n````\r\nMy problem is that for some reasons, I cannot put the function `doSomethingWith(objectJSON )` in the scope of ` if (stringComplete) {}`... It would be too easy...\r\nDo you have some suggestion ?\r\n\r\nThanks a lot !"},"comment":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/comments/228675977","html_url":"https://github.com/bblanchon/ArduinoJson/issues/308#issuecomment-228675977","issue_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/308","id":228675977,"user":{"login":"bblanchon","id":5462433,"avatar_url":"https://avatars.githubusercontent.com/u/5462433?v=3","gravatar_id":"","url":"https://api.github.com/users/bblanchon","html_url":"https://github.com/bblanchon","followers_url":"https://api.github.com/users/bblanchon/followers","following_url":"https://api.github.com/users/bblanchon/following{/other_user}","gists_url":"https://api.github.com/users/bblanchon/gists{/gist_id}","starred_url":"https://api.github.com/users/bblanchon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblanchon/subscriptions","organizations_url":"https://api.github.com/users/bblanchon/orgs","repos_url":"https://api.github.com/users/bblanchon/repos","events_url":"https://api.github.com/users/bblanchon/events{/privacy}","received_events_url":"https://api.github.com/users/bblanchon/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T07:49:07Z","updated_at":"2016-06-27T07:49:07Z","body":"All of this is a side-effect of the fixed allocation strategy of ArduinoJson.\r\nThis is a nearly unique feature that allows ArduinoJson to run on MCU with as little as 1KB of memory.\r\n\r\nYou can take any other JSON library, and you won't have that particular problem.\r\n\r\nFeel free to close this issue if you don't use ArduinoJson anymore."}}
{"actor":{"display_login":"bblanchon"}}