PHP Classes
elePHPant
Icontem

File: JSONGrammar.txt

Recommend this page to a friend!
  Classes of Max Base  >  JPOPHP PHP JSON Parser Class  >  JSONGrammar.txt  >  Download  
File: JSONGrammar.txt
Role: Documentation
Content type: text/plain
Description: Documentation
Class: JPOPHP PHP JSON Parser Class
Encode and decode data in JSON format
Author: By
Last change:
Date: 3 months ago
Size: 1,158 bytes
 

 

Contents

Class file image Download
============== Standard JSON Grammar

- json
    - element

- value
    - object
    - array
    - string
    - number
    - "true"
    - "false"
    - "null"

- object
    - '{' ws '}'
    - '{' members '}'

- members
    - member
    - member ',' members

- member
    - ws string ws ':' element

- array
    - '[' ws ']'
    - '[' elements ']'

- elements
    - element
    - element ',' elements

- element
    - ws value ws

- string
    - '"' characters '"'

- characters
    - ""
    - character characters

- character
    - '0020' . '10ffff' - '"' - '\'
    - '\' escape

- escape
    - '"'
    - '\'
    - '/'
    - 'b'
    - 'n'
    - 'r'
    - 't'
    - 'u' hex hex hex hex

- hex
    - digit
    - 'A' . 'F'
    - 'a' . 'f'

- number
    - int frac exp

- int
    - digit
    - onenine digits
    - '-' digit
    - '-' onenine digits

- digits
    - digit
    - digit digits

- digit
    - '0'
    - onenine

- onenine
    - '1' . '9'

- frac
    - ""
    - '.' digits

- exp
    - ""
    - 'E' sign digits
    - 'e' sign digits

- sign
    - ""
    - '+'
    - '-'

- ws
    - ""
    - '0009' ws
    - '000A' ws
    - '000D' ws
    - '0020' ws