chrysa22

0

votes
1

answer
9

views

How can i create a nested json from database in c#?

I have created a web api which displays data from a table in database in json format.I want to create a nested api. How can i do this ? Thanks My json when i call the api { 'ID': 1, 'plVersion': 1, 'mID': 10, 'sID': 1025, 'orID': null, 'x': 22.9935, 'y': 40.5885, } I want something like this [{ 'ID'...
chrysa22
1

votes
1

answer
0

views

How to display a specific parameter from json?

I want to display only the parameter Number which contains [5,8]. I try the following but does not show any effect. Any possible answers? My Json: { 'PCol': [{ 'Id': 15, 'TimeStamp': '2018-02-1', 'Val': { 'States': [{ 'Numbers': { 'Number': [5, 8] }, 'CS': { 'ST': '25' }, 'Changes': [{ 'NextTime': 1...
chrysa22