json_minify

emlib.jsontools.json_minify(json, strip_space=True)[source]

strip comments and remove space from string

Parameters:
  • json (str) – a string representing a json object

  • strip_space – remove spaces

Return type:

str

Returns:

the minified json