SkillAgentSearch skills...

Jsontree

Python jsontree class for easy json data creation and management

Install / Use

/learn @dougn/Jsontree
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

jsontree - build, parse and explore json data

Travis integration TBD

jsontree is a simple module for quickly building manipulating and modifying rich json data in python.

Datetime objects are serialized out ti the ISO format which is easilly used in javascript. ISO formatted datetime strings will be deserialized into datetime objects.

.. code::

import jsontree
import datetime
data = jsontree.jsontree()
data.username = 'doug'
data.meta.date = datetime.datetime.now()
data.somethingelse = [1,2,3]

data['username'] == 'doug'

ser = jsontree.dumps(data)
backagain = jsontree.loads(ser)
cloned = jsontree.clone(data)

Project Links:

  • Documentation <https://jsontree.readthedocs.io/en/latest/>_
  • PyPi <https://pypi.org/project/jsontree/>_
  • GitHub <https://github.com/dougn/jsontree>_

Related Skills

View on GitHub
GitHub Stars18
CategoryDevelopment
Updated3y ago
Forks3

Languages

Python

Security Score

75/100

Audited on Jan 3, 2023

No findings