Json Comment

A wrapper to JSON parsers allowing comments and multiline strings


Dependencies

Python 2.7, 3.3

Optional

ujson 1.30+


Description

JSON Comment allows to parse JSON files or strings with:

This package works with any JSON parser which supports:

by adding a preprocessor to these calls.


Comments

Inline comments are not supported


Multiline strings

Any string can be multiline, even object keys.


Usage

Install

Download source from Pypi

python setup.py install

Call Example

import json
from jsoncomment import JsonComment

string = "[]"
parser = JsonComment(json)
parsed_object = parser.loads(string)

Examples

Added in the /examples directory


Contact

Dando Real ITA @ Steam Profile