Added initial json-api test.
json-api test should now work on python 2 and 3.