We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var circles = new Circle[] { new Circle() { Center = new Point(0, 0), Radius = 1, data = new int [2, 3] { { 1, 2, 4 }, { 1, 2, 3 } } }, new Circle() { Center = p, Radius = 2 }, new Circle() { Center = p, Radius = 3 } }; var json = JSON.ToNiceJSON(circles); var data = JSON.ToObject<Circle[]>(json);
[ { "Center" : { "X" : 0, "Y" : 0 }, "Radius" : 1, "data" : [ 1, 2, 4, 1, 2, 3 ] }, { "Center" : { "X" : 0, "Y" : 1 }, "Radius" : 2, "data" : null }, { "Center" : { "X" : 0, "Y" : 1 }, "Radius" : 3, "data" : null } ]
After the reverse transformation, data = int [6], but need int [2, 3].
The text was updated successfully, but these errors were encountered:
Probably a problem with serializing multi-dimensional arrays... I will look into it, thanks!
Sorry, something went wrong.
The IEnumerable just goes though the list regardless, I have to use the Rank property. How is the following as an output :
IEnumerable
Rank
"data" : [ [1,2,4] , [1,2,3] ],
No branches or pull requests
After the reverse transformation, data = int [6], but need int [2, 3].
The text was updated successfully, but these errors were encountered: