I am trying to read my JSON result.
Here is my RootObject
public class RootObject
{
public int id { get; set; }
public bool is_defau
To read more than one json tip (array, attribute) I did the following.
var jVariable = JsonConvert.DeserializeObject(jsonVariableContent);
change to
var jVariable = JsonConvert.DeserializeObject >(jsonVariableContent);
Because you cannot see all the bits in the method used in the foreach loop. Example foreach loop
foreach (jsonDonanimSimple Variable in jVariable)
{
debugOutput(jVariable.Id.ToString());
debugOutput(jVariable.Header.ToString());
debugOutput(jVariable.Content.ToString());
}
I also received an error in this loop and changed it as follows.
foreach (jsonDonanimSimple Variable in jVariable)
{
debugOutput(Variable.Id.ToString());
debugOutput(Variable.Header.ToString());
debugOutput(Variable.Content.ToString());
}