Looking over a couple Articles about Json


(Cherolyn Lexvold) #1

https://www.json.org/ and https://www.crockford.com/mckeeman.html
What is ws? Just guessing, white space?

“name newline nothing alternatives”

"Each alternative is indented on its own line. Each alternative contains items followed by a newline.

alternatives
alternative
alternative alternatives

alternative
indentation items newline"

What are alternatives?


( Kvaz1r) #2

Alternative means an option, a variant, a choice. Something from set of elements. So alternative is an element.

In the article there is example with JSON below.

value //set = value, 
    object // alternative from set value
    array // and this one
    string // same here
    number // ...
    "true" // ...
    "false" // ...
    "null" // ...

All types (bool,string, int whatever) are also a set and alternatives is all valid values.

P.S. Grammars are hard concept.


(Cherolyn Lexvold) #3

Thanks :slight_smile:
I saved your information to a file