Seems ResourceApiBase class inherits from ApiBase class and both have a body_to_json() method. The methods do the same thing and therefore ResourceApiBase does not need its own body_to_json() method. Especially considering that the one in ResourceApiBase is susceptible to an unhandled exception condition.