remove_comments

emlib.jsontools.remove_comments(json_like)[source]

Removes C-style comments from json_like and returns the result.

Parameters:

json_like (str) – a fragment of valid json

Returns:

the json text with any comments removed