Simple JSON API

the response should be a json object not plain text