Skip to main content

A json parser

Project description

Introduction

This is a json parser. It understands everything within brackets. That means, you will give it anything like

{‘activePolygonId’:null,’polygons’:null,’route’:null}

Of course deeply nested arrays are fully supported without a limit.

d9t.json

>>> from d9t.json import parser

Let’s define some json data.

>>> json = """ {'data1':null, 'data2':'something', 'data3':[1,2,3,'string',true,{'datanested':'something','floatdata':44.22, 'bool':false}]} """
>>> domparser = parser.JsDomParser(json)
>>> data = domparser.parse()
>>> data
{'data1': None, 'data3': [1, 2, 3, 'string', True, {'datanested': 'something', 'bool': False, 'floatdata': 44.219999999999999}], 'data2': 'something'}

That’s it ;)

Changelog

0.3* - splitted off from google.directions


  • Initial release

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

d9t.json-0.3.tar.gz (17.9 kB view details)

Uploaded Source

File details

Details for the file d9t.json-0.3.tar.gz.

File metadata

  • Download URL: d9t.json-0.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for d9t.json-0.3.tar.gz
Algorithm Hash digest
SHA256 0ff1fa2d7008b1bdfccfe87c5f8350df8bc20682b043f7e111e783b42f837855
MD5 02fbb5ed04303cfdf5fc54c14b92f359
BLAKE2b-256 b25badf9677588b1414781133b6360d113ecf67e6e9d1de65d6111b4af84c8de

See more details on using hashes here.

Supported by

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