Skip to content

json mode fails to recognise true/false/null #61

@philshafer

Description

@philshafer

If you write json-style declarations, like:

  "name": "Skip Tracer",
  "location": "The city that never sleeps",
  "age": 5,
  "real": false,
  "cases": null,

false and null will fail because the parser does not turn on the magic SDF_JSON_KEYWORDS flag while parsing this input. If does turn this on for json-to-xml mode.

The production jsonst_name_and_colon needs to turn this flag on and the production jsonst_stmt needs to clear it.

Thanks,
Phil

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions