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

[TODO] Switch config files from json to jsonc (json + comment) #1

Open
qlan3 opened this issue Jan 14, 2025 · 0 comments
Open

[TODO] Switch config files from json to jsonc (json + comment) #1

qlan3 opened this issue Jan 14, 2025 · 0 comments

Comments

@qlan3
Copy link
Owner

qlan3 commented Jan 14, 2025

  1. Install jsonc-parser: pip install jsonc-parser
  2. Convert jsonc to python dict:
from jsonc_parser.parser import JsoncParser

config_path = 'test.jsonc'
config = JsoncParser.parse_file(config_path)
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

1 participant