I have a list of departments and have to show them inside a tree view. I am using C #, ASP.NET, I call this cool control Treed, but this requires a JSON file.
What would be the best way to achieve this type of JSON structure from ASP.net?
Currently I store this data in the form of datatale. If there is any solution through any other collection, then please advise that IM open anything at this point.
Many thanks for your help
First of all, there are some underlying chain carriers. You can use JSON data to use WCF DataContracts and DataContractJsonSerializer for consumption by the end points of your service. If your application uses a lot of WCFs in its service architecture, then it should be easy to include the serializer.
The system. Web Script The Serialization also has a JavaScript Secreaser class; It has a low aspect-oriented optimization plan, which requires you to define a custom converter class, if the serializer can not understand your class (or its default behavior is not what you want), but you have given the output and Consumptions both control this JSON data and you can theoretically customize client-side scripting to deal with default behavior. A. Overall, this object is the simplest way to convert JSON.
Finally, there is a third-party library available at JSON.NET. It's great; I have used it in some projects for JSON results of AJAX-Y script methods. I have features that you can use to optimize tweaks for the actualization behavior, without the full load of WCF DataContracts.
No comments:
Post a Comment