Changed method GET to return JSON