EvilZone
Programming and Scripting => Web Oriented Coding => : SOSA July 15, 2015, 05:12:11 AM
-
Hey guys, I'm just beginning with JavaScript so please forigve my ignorance. I was at a hackathon a while back and heard some guys talking about compiling JS into a JSON file. Could you please elaborate this a little to me. When I looked up JSON I got something completely different than what I would imagine it to be.
My questions are?
Is this possible?
If so how do you do it?
What can it be used for?
What exactly is a JSON?
-
These questions can be perfectly typed into a famous search engine.
-
These questions were,
-
Ok, so JSON (JavaScript Object Notation) has very few if nothing in comon with JS (JavaScript), even though JS can be used to write JSON files.
JSON is a format for storing informations in complex trees. It's useful for object serialization and deserialization, that means turning object data into a JSON file, and vice versa. It is also widely used for general purpose information storing.
JSON is very popular, because:
- it is easy to read and write by humans
- it is easy to parse and generate by computers
JSON can be used as well in JavaScript as in C++, Java, Python and other languages.
How a JSON is created totally depends on the language you're using.
Useful link:
http://lmgtfy.com/?q=json&l=1
-
Thank you very much HardCodedShadow