{"action":"created","issue":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/836","repository_url":"https://api.github.com/repos/bblanchon/ArduinoJson","labels_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/836/labels{/name}","comments_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/836/comments","events_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/836/events","html_url":"https://github.com/bblanchon/ArduinoJson/issues/836","id":374180758,"node_id":"MDU6SXNzdWUzNzQxODA3NTg=","number":836,"title":"JsonPair::value does not have class type","user":{"login":"martinloren","id":37680207,"node_id":"MDQ6VXNlcjM3NjgwMjA3","avatar_url":"https://avatars1.githubusercontent.com/u/37680207?v=4","gravatar_id":"","url":"https://api.github.com/users/martinloren","html_url":"https://github.com/martinloren","followers_url":"https://api.github.com/users/martinloren/followers","following_url":"https://api.github.com/users/martinloren/following{/other_user}","gists_url":"https://api.github.com/users/martinloren/gists{/gist_id}","starred_url":"https://api.github.com/users/martinloren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinloren/subscriptions","organizations_url":"https://api.github.com/users/martinloren/orgs","repos_url":"https://api.github.com/users/martinloren/repos","events_url":"https://api.github.com/users/martinloren/events{/privacy}","received_events_url":"https://api.github.com/users/martinloren/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T00:17:46Z","updated_at":"2018-10-26T00:53:47Z","closed_at":null,"author_association":"NONE","body":"Tring to run the example for V6 Beta:\r\n\r\n```\r\nchar json[] = \"{\\\"first\\\":\\\"hello\\\",\\\"second\\\":\\\"world\\\"}\";\r\nDynamicJsonDocument doc;\r\ndeserializeJson(doc, json);\r\nJsonObject root = doc.as<JsonObject>();\r\n\r\n// using C++11 syntax (preferred):\r\nfor (auto kv : root) {\r\n    Serial.println(kv.key.c_str());\r\n    Serial.println(kv.value.as<char*>());\r\n}\r\n```\r\n\r\nGot:\r\n\r\n> error: invalid use of non-static member function\r\n>        Serial.println(kv.key);\r\n> \r\n> error: 'kv.ArduinoJson650_0_0::JsonPair::value' does not have class type\r\n>        Serial.println(kv.value.as<char*>());\r\n>\r\n> error:  expected primary-expression before 'char'\r\n>        Serial.println(kv.value.as<char*>());\r\n> "},"comment":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/comments/433251772","html_url":"https://github.com/bblanchon/ArduinoJson/issues/836#issuecomment-433251772","issue_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/836","id":433251772,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzI1MTc3Mg==","user":{"login":"martinloren","id":37680207,"node_id":"MDQ6VXNlcjM3NjgwMjA3","avatar_url":"https://avatars1.githubusercontent.com/u/37680207?v=4","gravatar_id":"","url":"https://api.github.com/users/martinloren","html_url":"https://github.com/martinloren","followers_url":"https://api.github.com/users/martinloren/followers","following_url":"https://api.github.com/users/martinloren/following{/other_user}","gists_url":"https://api.github.com/users/martinloren/gists{/gist_id}","starred_url":"https://api.github.com/users/martinloren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinloren/subscriptions","organizations_url":"https://api.github.com/users/martinloren/orgs","repos_url":"https://api.github.com/users/martinloren/repos","events_url":"https://api.github.com/users/martinloren/events{/privacy}","received_events_url":"https://api.github.com/users/martinloren/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T00:53:47Z","updated_at":"2018-10-26T00:53:47Z","author_association":"NONE","body":"Documentation need to be updated since **key** and **value** are private now.\r\nCode become:\r\n`Serial.print(kv.key());\r\nSerial.print(\": \");\r\nSerial.println(kv.value().as<char*>());`"}}
{"actor":{"display_login":"martinloren"}}