[1,2,3,4] is valid json

Jun 22, 2012 at 6:55 AM

string json="[1,2,3,4]";

will fail to parse, normally I don't have code like that. But the JIRA REST API returns non-object starting json for it's fields so I had to hack the code like this


    public static new JObject Parse(string json)   


 (json[0] != '{')        {            json="{\"dummyObject\":"+json+"}";        }