{"action":"created","issue":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/218","labels_url":"https://api.github.com/repos/ServiceStack/Issues/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/ServiceStack/Issues/issues/218/comments","events_url":"https://api.github.com/repos/ServiceStack/Issues/issues/218/events","html_url":"https://github.com/ServiceStack/Issues/issues/218","id":55082029,"number":218,"title":"ServiceStack.Text JsonObject.ArrayObjects returns invalid results for string arrays","user":{"login":"svantreeck","id":6819011,"avatar_url":"https://avatars.githubusercontent.com/u/6819011?v=3","gravatar_id":"","url":"https://api.github.com/users/svantreeck","html_url":"https://github.com/svantreeck","followers_url":"https://api.github.com/users/svantreeck/followers","following_url":"https://api.github.com/users/svantreeck/following{/other_user}","gists_url":"https://api.github.com/users/svantreeck/gists{/gist_id}","starred_url":"https://api.github.com/users/svantreeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svantreeck/subscriptions","organizations_url":"https://api.github.com/users/svantreeck/orgs","repos_url":"https://api.github.com/users/svantreeck/repos","events_url":"https://api.github.com/users/svantreeck/events{/privacy}","received_events_url":"https://api.github.com/users/svantreeck/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-21T21:48:07Z","updated_at":"2015-01-21T21:55:01Z","closed_at":"2015-01-21T21:55:01Z","body":"When using JsonObject.Parse(<value>), and if one of the subsequent properties has a string array of values, retrieving the values does not seem to work as expected.  In the example below, I'd expect that calling ArrayObjects would return \"value1\" and \"value2\"; however, it seems to strip the 'v' character off of the returned values.  I can work around it with JsonTo<string[]> (which might be the preferable way?), but the documentation is not clear on how you would consume this data.\r\n\r\n            var data = new { key = new string[] { \"value1\", \"value2\" } };\r\n            var result = JsonSerializer.SerializeToString(data);\r\n\r\n            result.Should().Be(@\"{\"\"key\"\":[\"\"value1\"\",\"\"value2\"\"]}\");\r\n\r\n            var value = JsonObject.Parse(result);\r\n            //var dataObjects = value.JsonTo<string[]>(\"key\");\r\n            var dataObjects = value.ArrayObjects(\"key\");\r\n\r\n            // dataObjects.Keys = \"alue1\", \"alue2\"\r\n            dataObjects.Should().Contain(\"value1\");\r\n            dataObjects.Should().Contain(\"value2\");"},"comment":{"url":"https://api.github.com/repos/ServiceStack/Issues/issues/comments/70929545","html_url":"https://github.com/ServiceStack/Issues/issues/218#issuecomment-70929545","issue_url":"https://api.github.com/repos/ServiceStack/Issues/issues/218","id":70929545,"user":{"login":"mythz","id":89361,"avatar_url":"https://avatars.githubusercontent.com/u/89361?v=3","gravatar_id":"","url":"https://api.github.com/users/mythz","html_url":"https://github.com/mythz","followers_url":"https://api.github.com/users/mythz/followers","following_url":"https://api.github.com/users/mythz/following{/other_user}","gists_url":"https://api.github.com/users/mythz/gists{/gist_id}","starred_url":"https://api.github.com/users/mythz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mythz/subscriptions","organizations_url":"https://api.github.com/users/mythz/orgs","repos_url":"https://api.github.com/users/mythz/repos","events_url":"https://api.github.com/users/mythz/events{/privacy}","received_events_url":"https://api.github.com/users/mythz/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T21:55:01Z","updated_at":"2015-01-21T21:55:01Z","body":"It's not an array of objects, it's an array of string which you can parse with:\r\n\r\n```csharp\r\nvar data = new { key = new[] { \"value1\", \"value2\" } };\r\nvar json = data.ToJson();\r\n\r\nAssert.That(json, Is.EqualTo(@\"{\"\"key\"\":[\"\"value1\"\",\"\"value2\"\"]}\"));\r\n\r\nvar value = JsonObject.Parse(json);\r\nvar dataObjects = value.Get<string[]>(\"key\");\r\n\r\nAssert.That(dataObjects[0], Is.EqualTo(\"value1\"));\r\nAssert.That(dataObjects[1], Is.EqualTo(\"value2\"));\r\n```"}}