{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/4232","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/4232/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/4232/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/4232/events","html_url":"https://github.com/godotengine/godot/issues/4232","id":145993960,"number":4232,"title":"Dictionary fails to parse JSON with array as top level","user":{"login":"neikeq","id":7718100,"avatar_url":"https://avatars.githubusercontent.com/u/7718100?v=3","gravatar_id":"","url":"https://api.github.com/users/neikeq","html_url":"https://github.com/neikeq","followers_url":"https://api.github.com/users/neikeq/followers","following_url":"https://api.github.com/users/neikeq/following{/other_user}","gists_url":"https://api.github.com/users/neikeq/gists{/gist_id}","starred_url":"https://api.github.com/users/neikeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neikeq/subscriptions","organizations_url":"https://api.github.com/users/neikeq/orgs","repos_url":"https://api.github.com/users/neikeq/repos","events_url":"https://api.github.com/users/neikeq/events{/privacy}","received_events_url":"https://api.github.com/users/neikeq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/bug","name":"bug","color":"ff2222"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:core","name":"topic:core","color":"ffdd44"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-04-05T13:46:18Z","updated_at":"2016-06-14T14:13:33Z","closed_at":null,"body":"**Operating system or device:**\r\nUbuntu 15.10 64bits\r\n\r\n**Issue description** (what happened, and what was expected):\r\nIt's valid for a JSON to have an array as top level, however _Dictionary_ fails to parse it:\r\n\r\n```\r\nERROR: parse_json: Error parsing JSON: Expected '{' at line: 0\r\n   At: core/dictionary.cpp:206.\r\n```\r\n\r\n**Steps to reproduce:**\r\n``` GDScript\r\nfunc test_json_top_level_array():\r\n\tassert({}.parse_json(\"[ { \\\"name\\\": \\\"Richard\\\" }, {\\\"name\\\": \\\"Drahcir\\\"} ]\") == OK)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/225894070","html_url":"https://github.com/godotengine/godot/issues/4232#issuecomment-225894070","issue_url":"https://api.github.com/repos/godotengine/godot/issues/4232","id":225894070,"user":{"login":"neikeq","id":7718100,"avatar_url":"https://avatars.githubusercontent.com/u/7718100?v=3","gravatar_id":"","url":"https://api.github.com/users/neikeq","html_url":"https://github.com/neikeq","followers_url":"https://api.github.com/users/neikeq/followers","following_url":"https://api.github.com/users/neikeq/following{/other_user}","gists_url":"https://api.github.com/users/neikeq/gists{/gist_id}","starred_url":"https://api.github.com/users/neikeq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neikeq/subscriptions","organizations_url":"https://api.github.com/users/neikeq/orgs","repos_url":"https://api.github.com/users/neikeq/repos","events_url":"https://api.github.com/users/neikeq/events{/privacy}","received_events_url":"https://api.github.com/users/neikeq/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T14:13:33Z","updated_at":"2016-06-14T14:13:33Z","body":"@vnen That's probably because a Dictionary as string has a similar syntax to JSON. But is it exactly the same in all cases?"}}
{"actor":{"display_login":"neikeq"}}