Added a return for JSON methods