Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inpurt script switches to json5 format #94

Open
wanghan-iapcm opened this issue Oct 26, 2022 · 2 comments
Open

Inpurt script switches to json5 format #94

wanghan-iapcm opened this issue Oct 26, 2022 · 2 comments

Comments

@wanghan-iapcm
Copy link

The json5 format is a extension of the json format, and is more human readable and easier to write. The main advantages:

  • support comments
  • trailing commas allowed.
  • no quotation needed for keys.

More details are found on the official web site of json5

The json5 is parsed by python package pyjson5

@link89
Copy link

link89 commented Feb 27, 2023

I think YAML is good enough for most cases. If people feel that writing yaml/json directly is annoy, they could just write some Typescript script to generate YAML/JSON file. There are even modern solutions like cue-lang to validate and generate YAML configuration. Both Typescript and cue-lang are working well with VsCode if you define the type schema properly.

@njzjz
Copy link
Member

njzjz commented Sep 16, 2024

I think YAML is good enough for most cases.

I agree with it as YAML is also a superset of JSON and also supports all of these features (comments, no quotation, etc). However, it seems to me that dpgen2 has not supported YAML yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants