Added a helper method to extract JSON information in the request body