Skip to main content

Flatten json.

Project description

Flatjson

Flatten JSON.

Installation

pip install flatjson

Usage

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'}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for flatjson, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size flatjson-0.1.1-py3-none-any.whl (1.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size flatjson-0.1.1.tar.gz (1.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page