Skip to main content
Share Your Experience: Take the 2024 Developer Survey
CypherX's user avatar
CypherX's user avatar
CypherX's user avatar
CypherX
  • Member for 5 years, 10 months
  • Last seen more than a week ago
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

import json
from jsmin import jsmin

with open('parameters.jsonc') as js_file:
    minified = jsmin(js_file.read())
parameters  = json.loads(minified)
Badges
This user doesn’t have any gold badges yet.
This user doesn’t have any silver badges yet.
7
bronze badges
Top tags
0
Score
2
Posts
100
Posts %
0
Score
2
Posts
100
Posts %
0
Score
2
Posts
100
Posts %
0
Score
2
Posts
100
Posts %
0
Score
2
Posts
100
Posts %
Top posts