JSON Parser Boundary ConditionsPermanent link for this heading

The following boundary conditions exist in the current JSON parser implementation:

Complex ArraysPermanent link for this heading

Fabasoft Folio does not support multi-typed arrays, for instance integers and strings within one array.

Example:

[
    1,

    2,

    3,

    4,

    "a",

    "b",

    "c",

    {

        "foo": "bar",

        "core": "dump"

    },

    true,

    false,

    true,

    true,

    null,

    false

]

Result:

Error: Type mismatch.

Null ValuesPermanent link for this heading

A JSON string containing null values or empty arrays is always represented as an invalid Fabasoft Folio value.

Example:

  • [null] or [""]
    Result: []
  • [{}]
    Result: {}

Invalid UTF-8 CharactersPermanent link for this heading

A JSON string containing invalid UTF-8 characters is not parsed.

Example:

  • ["€þıœəßð some utf-8 ĸʒ×ŋµåäöð?„ž"]
    Syntax
    error: invalid utf-8 character
  • ["\uD834\uDD1E surrogate, four-byte UTF-8"]
    Syntax error: invalid utf-8 character