![]() It has custom classes to represent the different json types and for the most part an easy interface to the data with a lot of automatic conversion operators which should make your life easier. I've written this SimpleJSON parser which does exactly that. So setting up a parser for this is possible but also tricky and requires a lot setup to make sure the parser can create the correct types.Īlternatively you can use a pure json parser that parses the data into an generic array / dictionary structure and process the data yourself. First you have a text component and then additional components like your slider. For example your "page" array contains different kinds of objects. In general your current approach to structure your data requires some kind of polymorphism if one wants to represent the data in a single array. It supports all sorts of data and wayst how to deserialize json data. One of the most famous one is Newtonsoft's Json.NET library. That's why most people use an external Json library.
0 Comments
Leave a Reply. |