If this is a bit confusing, don't worry, it'll be much clearer after a few examples. In the rest of the blog post, we'll name them object lists, but on the Java side they can be either. Yes, the Java implementations make a huge difference between them, but on a high level they represent the exact same data in a list form. In the JSON data format, there are no lists or arrays. The interesting thing when it comes to mapping list or array structures to JSON: it doesn't matter. What you're going to apply in your use case depends on the software requirements and at least partly your personal taste. The Java implementation is significantly different and either one has its advantages. ![]() Before we go into specific (de)serialization examples, we want to examine the two Java structures Arrays and Lists.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |