What is the correct notation for learning to create configuration files for nodejs, bower, and others?

0

What is the correct notation for specifying a JSON file that has multiple nested brackets and brackets? I see this in bower, grunt, nodejs, npm, etc. and various web development plugins.

    
asked by anonymous 10.06.2015 / 00:47

1 answer

0

You are referring to the JSON (Javascript Object Notation) format. The format is for example this:

{
"prop": [
    1,
    2,
    3,
    4
],
"prop2": "wow"

}

You can check that json is link , copy the code and validate it, the website tells you if it is valid json or Nope.

Basically it is an object with properties, and these can have properties too, you just have to be careful in doing "prop": "content", attention to the colon and the quotation marks. Also remember that the last element never has a comma.

    
10.06.2015 / 01:09