add json response format
Merge pull request #2 from abimaelmartell/add-json-api

add json response format