Nykakin / chompjs

Parsing JavaScript objects into Python data structures
MIT License
198 stars 11 forks source link

Allow custom load function #63

Closed Nykakin closed 3 months ago

Nykakin commented 5 months ago

Idea originally proposed in https://github.com/Nykakin/chompjs/issues/61

It makes sense to allow using different loader function, for example orjson.loads.

Since such function can require positional arguments instead of keywords ones like json.loads uses, decided to deprecate json_params argument in favor of a pair loader_args and loader_kwargs.