Skip to content

Suggestion: in-place creation compatible with JSON #207

@nxtruong

Description

@nxtruong

Currently, in-place object creation uses the [] pair to create maps, e.g. ["id": 1, "name": "John"]. Is it possible to change the mark-up pair to {} (or support both)?. So {"id": 1, "name": "John"} produces the same object.

The reason I am asking for this change is to make the syntax compatible with a subset of JSON. With this, we can receive a JSON message in a string, pass it to Chaiscript and get a Chaiscript object of the JSON message. Just a suggestion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions