Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
JSON Array with RootObject and SubObjects
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Skythrust" data-source="post: 481319" data-attributes="member: 87030"><p>Hi All,</p><p></p><p>I have these two kind of libraries;</p><p></p><p>[CODE=csharp] public class Root</p><p> {</p><p> public List<Liveweer> liveweer { get; } = new List<Liveweer>();</p><p> public List<WkVerw> wk_verw { get; } = new List<WkVerw>();</p><p> public List<UurVerw> uur_verw { get; } = new List<UurVerw>();</p><p> public List<Api> api { get; } = new List<Api>();</p><p> }</p><p></p><p> public class Api</p><p> {</p><p> public string source { get; set; }</p><p> public int max_verz { get; set; }</p><p> public int rest_verz { get; set; }</p><p> }</p><p>[/CODE]</p><p></p><p>I was wondering how I can call source, max_verz and rest_verz inside the Api class, I was thinking I could call them via a foreach to use them in a WPF application.</p><p>Whatever I try I will get the messages that the JSON is incorrect. but the JSON is from a third party integrator which works with other systems.</p></blockquote><p></p>
[QUOTE="Skythrust, post: 481319, member: 87030"] Hi All, I have these two kind of libraries; [CODE=csharp] public class Root { public List<Liveweer> liveweer { get; } = new List<Liveweer>(); public List<WkVerw> wk_verw { get; } = new List<WkVerw>(); public List<UurVerw> uur_verw { get; } = new List<UurVerw>(); public List<Api> api { get; } = new List<Api>(); } public class Api { public string source { get; set; } public int max_verz { get; set; } public int rest_verz { get; set; } } [/CODE] I was wondering how I can call source, max_verz and rest_verz inside the Api class, I was thinking I could call them via a foreach to use them in a WPF application. Whatever I try I will get the messages that the JSON is incorrect. but the JSON is from a third party integrator which works with other systems. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
JSON Array with RootObject and SubObjects
Top