Skip to main content

Serialize a object including it's function into a JSON.

Project description

jsondump

Serialize a object including it's function into a JSON.

Install

pip install jsondump

Usage

import jsondump

Serialize an object including it's function:

obj = {
  'name': 'Bob',
  'say': ['Hello', 'World']
}

objS = jsondump.dumps(obj)
type(objS) is str
jsondump.loads(objS).name == 'Bob'

Serialize an object with a sub object:

var objWithSubObj = {
  'obj': {
    'name': 'Jeff',
    'say': ['Hello', 'World']
  }
}

objWithSubObjS = jsondump.dumps(objWithSubObj);
type(objWithSubObjS) is str
jsondump.loads(objWithSubObjS).obj.name == 'Jeff'

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

jsondump-0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsondump-0.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file jsondump-0.1.tar.gz.

File metadata

  • Download URL: jsondump-0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for jsondump-0.1.tar.gz
Algorithm Hash digest
SHA256 ee5a82aa50d945eaf0b103c45fd10f24533fc734b997e0cd9b5b25ce587dcdcd
MD5 df68a8c8b0f40edac5a08d560e9391c9
BLAKE2b-256 b5594e6fba02b7dab9a49889a506661d86d60e28e9144cd10171203f786e27ad

See more details on using hashes here.

File details

Details for the file jsondump-0.1-py3-none-any.whl.

File metadata

  • Download URL: jsondump-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for jsondump-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9bfcff5d036cfef6475b04c60ddabbbe6be04b9ab627bf65a687b6f1d7b25654
MD5 be1a49ec497001bc458464f68be4bc18
BLAKE2b-256 d3f38fe119e42eef6e813ce22bdb4525120a84680fd2e22c594366a54589e9d1

See more details on using hashes here.

Supported by

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