Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add github.com/tailscale/hujson extensions (#1294)
The hujson is a JSON package from tailscale allowing JSON files to contain comments that is also more liberal with respect to commas. We want to slowly upgrade all user-facing JSON-parsing code to use this more relaxed standard for parsing JSONs, because that would make our user's life significantly simpler in terms of writing and updating those files. In the short term, I would like the configuration file driving the usage of beacons to use this relaxed parsing. To this end, I am adding handy wrappers that combine using hujson with using the standard library parser to have a single hujson aware parsing function that behaves like the standard library's json.Unmarshal. Part of ooni/probe#2531
- Loading branch information