Answer the question
In order to leave comments, you need to log in
Who can help me figure out json parsing in C#? Or give an example of parsing?
Here is what I have:
{
"GameLevels": [
{
"ID": 1,
"Name": "Level1",
"Rows": 6,
"Cols": 5,
"TilesLayout": [
0,0,1,1,1,1,1,0,0,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,
0,0,1,1,1,1,1,0,0
],
"GameResultSetings": {
"TargetPoint": 150
}
},
{
"ID": 2,
"Name": "Level2",
"Rows": 7,
"Cols": 7,
"TilesLayout": [
0,0,1,1,1,1,1,0,0,
1,1,1,1,1,1,1,1,1,
1,1,1,1,0,1,1,1,1,
1,1,1,1,0,1,1,1,1,
1,1,1,1,0,1,1,1,1,
1,1,1,1,0,1,1,1,1,
1,1,1,1,0,1,1,1,1,
1,1,1,1,1,1,1,1,1,
0,0,1,1,1,1,1,0,0
],
"GameResultSetings": {
"TargetPoint": 150
}
}
]
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question