Now handles the JSON body too