I'm using the Newtonsoft.Json.Linq library to parse json in C #. So far it worked beauty, when I have a json string like this:
{
'chave':'valor'
}
But when I have a json like this:
[
{
'chave':'valor'
},
{
'chave':'valor',
'outrachave':'outrovalor'
}
]
PS: This json is coming from the mysql database, it has been converted to the html URI format, by javascript, in a mysql column, I connect to the database with C #, I retrieve this value and use the following
string json = Uri.UnescapeDataString(pedido).ToString();
So I get json, and trying to parse it like this
JToken result = JObject.Parse(json);
And the error is as follows: Error reading JObject from JsonReader item is not an object
Does this library not accept even when it's bracket?