modularize json format.
fix docstring styles.
better method names.
json api version + pep8.
json types.
add json schema.
fix schema errors.
only output validated json.
Merge pull request #3 from ccchh/master

validate json