Newtonsoft has the JsonArrayIndex attribute, which makes it easy to deal with it.
e.g.
class Foo { public string Name; public DataValue Value; }class DataValue {[JsonArrayIndex(0)] public int Age;[JsonArrayIndex(1)] public int NumberOfChildren;}
Is manually parsing the array with a custom formatter the best way to do it with Utf8Json?
What's the best practice to deserialize the following json?
"name":"age children","attributes"=:[["27", "1", []],["28", "2", []]
Newtonsoft has the JsonArrayIndex attribute, which makes it easy to deal with it.
e.g.
class Foo { public string Name; public DataValue Value; }
class DataValue {
[JsonArrayIndex(0)] public int Age;
[JsonArrayIndex(1)] public int NumberOfChildren;
}
Is manually parsing the array with a custom formatter the best way to do it with Utf8Json?