Calculate the source map for a JSON document, mapping JSON values to their exact source locations (line, column, path). Version 1.0.5 supports Python 3.8-3.11. Low activity; last release March 2022.
pip install json-source-mapVerified import paths — ran on the pinned version, not inferred.
Parses a JSON string and returns source map for each key/value.
Access the source map via `result['key'].value` or iterate over original data keys.
Always pass a string. For bytes, decode first: `json_str = file_obj.read().decode('utf-8')`.Upgrade to Python 3.8+ or pin to json-source-map==1.0.2.
No dependency data recorded yet.