Skip to content

Parser flags are not available through the command line script jsonlint #92

@LLyaudet

Description

@LLyaudet

The following flags should be settable by command line invocation:

    const DETECT_KEY_CONFLICTS = 1;
    const ALLOW_DUPLICATE_KEYS = 2;
    const PARSE_TO_ASSOC = 4;
    const ALLOW_COMMENTS = 8;
    const ALLOW_DUPLICATE_KEYS_TO_ARRAY = 16;
    const VALIDATE_UTF8_ENCODING = 32;

It would be easy to do so with straightforward long options names only:

--detect-key-conflicts
--allow-duplicate-keys
--parse-to-assoc
--allow-comments
--allow-duplicate-keys-to-arrays
--validate-utf8-encoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions