{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/4764","repository_url":"https://api.github.com/repos/esp8266/Arduino","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/4764/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/4764/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/4764/events","html_url":"https://github.com/esp8266/Arduino/issues/4764","id":326716713,"number":4764,"title":"Reset on json.printTo();","user":{"login":"mahmoud2802","id":27809272,"avatar_url":"https://avatars2.githubusercontent.com/u/27809272?v=4","gravatar_id":"","url":"https://api.github.com/users/mahmoud2802","html_url":"https://github.com/mahmoud2802","followers_url":"https://api.github.com/users/mahmoud2802/followers","following_url":"https://api.github.com/users/mahmoud2802/following{/other_user}","gists_url":"https://api.github.com/users/mahmoud2802/gists{/gist_id}","starred_url":"https://api.github.com/users/mahmoud2802/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahmoud2802/subscriptions","organizations_url":"https://api.github.com/users/mahmoud2802/orgs","repos_url":"https://api.github.com/users/mahmoud2802/repos","events_url":"https://api.github.com/users/mahmoud2802/events{/privacy}","received_events_url":"https://api.github.com/users/mahmoud2802/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-26T07:08:52Z","updated_at":"2018-05-26T14:57:26Z","closed_at":"2018-05-26T14:57:26Z","author_association":"NONE","body":"\r\nhello\r\n\r\nvoid serializeEffects(String &jsonString, bool pretty, bool creds)\r\n{\r\n\tLOG_PORT.println(\"///Serilaze Effect\");\r\n\t// Create buffer and root object\r\n\tDynamicJsonBuffer jsonBuffer;\r\n\tJsonObject &json = jsonBuffer.createObject();\r\n\tjson[\"count\"] = Effect_count;\r\n\t// Effects\r\n\tJsonArray &EffectsJson = json.createNestedArray(\"effects\");\r\n\tfor (int i = 0; i < CountEffect; i++)\r\n\t{\r\n\t\tJsonObject &item = EffectsJson.createNestedObject();\t\r\n\t\titem[\"id\"] = effects_list[i].id;\r\n\t\titem[\"count\"] = effects_list[i].count;\r\n\t\titem[\"name\"] = effects_list[i].name.c_str();\r\n\t\titem[\"block\"] = effects_list[i].block;\r\n\t\titem[\"speed\"] = effects_list[i].speed;\r\n\t\titem[\"count_color_use\"] = effects_list[i].count_of_coloruse;\r\n\t\titem[\"background_color\"] = effects_list[i].background_color;\r\n\t\titem[\"direction\"] = effects_list[i].direction;\r\n\t\titem[\"has_direction\"] = effects_list[i].has_direction;\r\n\t\titem[\"has_block\"] = effects_list[i].has_block;\r\n\t\titem[\"has_irancolor\"] = effects_list[i].has_irancolor;\r\n\t\titem[\"has_specterum\"] = effects_list[i].has_specterum;\r\n\t\titem[\"position\"] = effects_list[i].position;\r\n\t\titem[\"color1\"] = effects_list[i].color[0];\r\n\t\titem[\"color2\"] = effects_list[i].color[1];\r\n\t\titem[\"color3\"] = effects_list[i].color[2];\r\n\t\titem[\"color4\"] = effects_list[i].color[3];\r\n\t\titem[\"color5\"] = effects_list[i].color[4];\r\n\t\titem[\"color6\"] = effects_list[i].color[5];\r\n\t\titem[\"color7\"] = effects_list[i].color[6];\r\n\t\titem[\"color8\"] = effects_list[i].color[7];\r\n\t\titem[\"color9\"] = effects_list[i].color[8];\r\n\t\titem[\"color10\"] = effects_list[i].color[9];\r\n\t\tEffectsJson.set(i, item);\r\n\t}\r\n\t\tjson.printTo(jsonString);\r\n\tLOG_PORT.println(\"Serilaize Done\");\r\n}\r\n\r\n\r\n\r\n\r\ni have a problem. when set Count to CountEffect I don't have any problem and works good.\r\nbut if CountEffect set 10 the program reset on \t\tjson.printTo(jsonString);.\r\neffects_list array size is 30.\r\ncan anyone help me to solve this problem?\r\nThanks\r\n"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/392266694","html_url":"https://github.com/esp8266/Arduino/issues/4764#issuecomment-392266694","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/4764","id":392266694,"user":{"login":"devyte","id":16824838,"avatar_url":"https://avatars0.githubusercontent.com/u/16824838?v=4","gravatar_id":"","url":"https://api.github.com/users/devyte","html_url":"https://github.com/devyte","followers_url":"https://api.github.com/users/devyte/followers","following_url":"https://api.github.com/users/devyte/following{/other_user}","gists_url":"https://api.github.com/users/devyte/gists{/gist_id}","starred_url":"https://api.github.com/users/devyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devyte/subscriptions","organizations_url":"https://api.github.com/users/devyte/orgs","repos_url":"https://api.github.com/users/devyte/repos","events_url":"https://api.github.com/users/devyte/events{/privacy}","received_events_url":"https://api.github.com/users/devyte/received_events","type":"User","site_admin":false},"created_at":"2018-05-26T14:57:26Z","updated_at":"2018-05-26T14:57:26Z","author_association":"COLLABORATOR","body":"Not the right place to ask, this is the issue tracker for the core.\r\nClosing."}}
{"actor":{"display_login":"devyte"}}