This forum is in archive mode. You will not be able to post new content.

Author Topic: Javascript  (Read 1148 times)

0 Members and 3 Guests are viewing this topic.

SOSA

  • Guest
Javascript
« 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?

Offline d!amond

  • Peasant
  • *
  • Posts: 60
  • Cookies: 15
    • View Profile
Re: Javascript
« Reply #1 on: July 15, 2015, 11:08:56 AM »
These questions can be perfectly typed into a famous search engine.

SOSA

  • Guest
Re: Javascript
« Reply #2 on: July 16, 2015, 02:22:33 PM »
These questions were,

Offline HardCodedShadow

  • /dev/null
  • *
  • Posts: 18
  • Cookies: 0
    • View Profile
Re: Javascript
« Reply #3 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
You may have seen me once, but you'll never forget who I am, even though I'm nobody.

SOSA

  • Guest
Re: Javascript
« Reply #4 on: July 18, 2015, 03:44:08 PM »
Thank you very much HardCodedShadow

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.