Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of CypherX

CypherX

CypherX has asked 2 questions and find answers to 10 problems.

Stats

284
EtPoint
92
Vote count
2
questions
10
answers

About

Some Useful Stuff

Current SO user's profile

Here is a list of some useful stuff I found and often use.

1. Parsing JSON file with comments

  • Source-1
  • Source-2
import json
from jsmin import jsmin

with open('parameters.jsonc') as js_file:
    minified = jsmin(js_file.read())
parameters  = json.loads(minified)