+ 2

JSON?

why it is convenient to use JSON in java

10th Jul 2018, 11:10 PM
Iachimciuc Bogdan
6 odpowiedzi
+ 2
Ben Allen (Njinx) in java why?
10th Jul 2018, 11:27 PM
Iachimciuc Bogdan
+ 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.
10th Jul 2018, 11:23 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 1
Iachimciuc Bogdan I don't know anything about Java just JavaScript.
10th Jul 2018, 11:28 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
+ 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/
11th Jul 2018, 5:50 AM
pranit patil
pranit patil - avatar
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.
11th Jul 2018, 12:08 AM
Mickel
Mickel - avatar
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).
11th Jul 2018, 3:07 AM
James
James - avatar