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.

alternative alternatives

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

(system) closed #4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.