Return parsed json on get requests

Allow defined get requests to return parsed json rather than simply printing the output.