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.

Source Distribution

flatjson-0.1.1.tar.gz (1.4 kB view details)

Uploaded Source

Built Distribution

flatjson-0.1.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file flatjson-0.1.1.tar.gz.

File metadata

  • Download URL: flatjson-0.1.1.tar.gz
  • Upload date:
  • Size: 1.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.5 Linux/4.19.66-1-MANJARO

File hashes

Hashes for flatjson-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f6c754be205764b8e3634c4660a2fab0c871c83f150e0488c16ba5209260c697
MD5 fcb95b77ad1d7eb0495d26a1420b4dd6
BLAKE2b-256 47aae4a0d5c921fdeb633b3514343fce4ca006a7ed68001362e88176067cbc45

See more details on using hashes here.

File details

Details for the file flatjson-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: flatjson-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.6.5 Linux/4.19.66-1-MANJARO

File hashes

Hashes for flatjson-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb7e007ac83ed9fe1a590d47131523f9e30e68f2efa17961346ffb7e574d392
MD5 6e3aebed082ac87548ec52ab0b9fed4d
BLAKE2b-256 a3300a5d745c1a7bc60af82c2cdfbf5a1314e243e4789fb785d3c809eb343866

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page