Json Node Lexer

  • JNL Beginner

    JSON (JavaScript Object Notation) is a language independent ASCII data-interchange format based on a subset of the JavaScript Programming Language, that is easy for humans to read and write, and easy for computers to parse and generate.

    JSON is built on three universal structures supported by most modern programming languages:

    1. Name-Data Pair: Set of two linked data items in which the Name is a unique identifier for the item of Data. Aliases: Key-Value Pair. A value can be a string in double quotes, or a number, or true or false or null, or an object or an array. 
    2. Object:  A unordered collection of Name-Data pairs. Aliases: Record, Struct, Dictionary, Hash table, Keyed list, or Associative array. An object begins with { (left brace) and ends with } (right brace). Each name is followed by : (colon) and the name-value pairs are separated by , (comma).
    3. Array: An ordered list of values. Aliases: Vector, List, or Sequence. An array begins with [ (left bracket) and ends with ] (right bracket). Values are separated by , (comma).

    These structures can be nested,  arranged in a hierarchy and serialized into a single piece of data.  All of these properties are makes JSON ideal for data-interchange internally and externally to a computer program.

Json Node Lexer

JNL JSON Validation

JNL operates in a non-strict mode with no JSON validation.  By operating in a non-strict mode, JNL is supports Hierarchical Order properties and other JSON formats:

  • non-quoted primitive values other than true/false/null/numbers
  • only primitive values without a root object

It means the following text will be valid for JNL:

server: example.com
post: 80
message: “hello world”

To VALIDATE encoded output, we recommend using https://jsonlint.com/.

Submit a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest