EvilZone

Programming and Scripting => Web Oriented Coding => Topic started by: SOSA on July 15, 2015, 05:12:11 AM

Title: Javascript
Post by: SOSA on 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?
Title: Re: Javascript
Post by: d!amond on July 15, 2015, 11:08:56 AM
These questions can be perfectly typed into a famous search engine.
Title: Re: Javascript
Post by: SOSA on July 16, 2015, 02:22:33 PM
These questions were,
Title: Re: Javascript
Post by: HardCodedShadow on July 17, 2015, 01:03:08 PM
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
Title: Re: Javascript
Post by: SOSA on July 18, 2015, 03:44:08 PM
Thank you very much HardCodedShadow