random-json-generator

random-json-generator (ranjg) is a python package providing functions to generate random JSON data according to JSON-Schema-LIKE object. (It is similar to JSON schema, but does NOT support some keywords. Also see ranjg-JSON-schema.)

For example:

>>> import ranjg
>>> schema = { 'type': 'string' }
>>> ranjg.gen(schema)  # <- returns a string value
>>> schema = { 'type': 'number', "minimum": 0 }
>>> ranjg.gen(schema)  # <- returns a non-negative float value

Indices and tables