Metadata-Version: 2.1
Name: json_repr
Version: 1.1.8
Summary: Handle JSON like data structures with a "repr(...)" fallback, e.g. for MongoDB types
Project-URL: Homepage, https://github.com/clxx/json-repr
Project-URL: Bug Tracker, https://github.com/clxx/json-repr/issues
Author-email: Carsten Lindner <Carsten.Lindner@gmx.net>
License-File: LICENSE
Keywords: JSON,MongoDB,dumps,eval,repr
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# json-repr

Pretty print JSON like data structures with a "repr(...)" fallback, e.g. for MongoDB types

## Usage

```python
import json_repr

source = """{
    "_id" : ObjectId("507f1f77bcf86cd799439011"),
	"persons": [
		{
			"name": "Alice"
			"id": NumberInt(1)
		},
		{
			"name": "Bob"
			"id": NumberInt(2)
		}
	]
}"""

persons = json_repr.eval_mongo_db_json(source)

print(persons)

print()

print(json_repr.dumps(persons))
```
