Added JSON output demo.
Move JSON test into api-demos folder.
Merge branch 'json-demo'