implement JSONResponse
Merge branch 'hotfix/json_response'