Add parsing of json on get requests - unsafe right now