Removed JSON API Stuff

Revert "Revert "Use of a JSON API""

This reverts commit
adf97d912089302636ff0577fdacc834dd325a54.

Revert "Use of a JSON API"

This reverts commit
64403e18e2aae7e876e537ee5eedc6b1ae1c8bac.