Make a JSON object of the retrieved string instead of returning said string