json attribute for ienumerable items
-
I am using a model that to be converted into json with Newtonsoft Json as follows MyCars[ Car{ Name:"" Model:"" } Car{ Name:"", Model:"" } ] but I am getting MyCar[ Car[ {Name:"", Model:"" } { Name:"", Model:"" } ] ] how to get first format?
-
I am using a model that to be converted into json with Newtonsoft Json as follows MyCars[ Car{ Name:"" Model:"" } Car{ Name:"", Model:"" } ] but I am getting MyCar[ Car[ {Name:"", Model:"" } { Name:"", Model:"" } ] ] how to get first format?
-
I am using a model that to be converted into json with Newtonsoft Json as follows MyCars[ Car{ Name:"" Model:"" } Car{ Name:"", Model:"" } ] but I am getting MyCar[ Car[ {Name:"", Model:"" } { Name:"", Model:"" } ] ] how to get first format?
You'll need to fix your C# model, which you haven't shown.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer