Adds JSON API format pull request 

Updates a previous pull request to add support for the JSON API format. This is related to #114.