osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Output JSON-schema from bottle application?


On Fri, 28 Feb 2014 14:49:07 +1100, Alec Taylor wrote:

> Are there libraries for doing this?
> 
> I would like to autogenerate JSON-schema for use inside an API explorer.
> 
> However whenever there is a schema change; I would only like to change
> the schema in one place (where possible).
> 
> E.g.: For use here - https://github.com/salesking/json-schema-browser
> 
> How do I do this?
> 
> Thanks for all suggestions,
> 
> Alec Taylor

A quick trip to google reveals the json module which is part of the std 
library

http://docs.python.org/2/library/json.html


-- 
Two cars in every pot and a chicken in every garage.