+ 2
JSON?
why it is convenient to use JSON in java
6 odpowiedzi
+ 2
Ben Allen (Njinx) in java why?
+ 1
It's small, easy to read, and can easily be parsed in JS. Since it's the default JS notation for arrays, there's no need to serialize arrays before transporting/storing them.
+ 1
Iachimciuc Bogdan I don't know anything about Java just JavaScript.
+ 1
Json is a file format and stand for Java Script Object Notation. It is commonly used for transferring the data over internet in REST protocols.
It is language independent format. Can be save any file with the extension “.json”. It is very light file as compared to .txt and .xml file and data read and write into file is very easy as compared to other formats.
Read Here:http://crbtech.in/Java-Training/know-json-used/
0
The benefits in Java are basically the same as Ben Allen mentioned, as far as I know. Even so, it depends on what you want to store or the platform for which you are programming.
0
I like using JSON because I always use JS. I don't have to convert the database or import it specially into JS, since the notation is already the same as JS (and mostly Java).