An open API service indexing awesome lists of open source software.

https://github.com/elliotgao2/flatjson

Flatten JSON.
https://github.com/elliotgao2/flatjson

flatten json

Last synced: about 2 months ago
JSON representation

Flatten JSON.

Awesome Lists containing this project

README

        

## Flatjson

Flatten JSON.

## Installation

`pip install flatjson`

## Usage

```python
import flatjson

data = {
"list":[{"a":1},{"b":True}],
"dict":{"c":1.1,"d":{"e":"string"}}
}
flatjson.dumps(data)

# {'list[0].a': 1, 'list[1].b': True, 'dict.c': 1.1, 'dict.d.e': 'string'}
```