I was using an API and the endpoint returned "application/problem+json" in the Content-Type. I had to create a custom parser
just to make HTTParty parse the response from the API.
Can you guys add this content type in the SupportedFormats?
My custom parser:
class CustomParser < HTTParty::Parser
SupportedFormats.merge!(
{ 'application/problem+json' => :json }
)
end
Good evening!
I was using an API and the endpoint returned "application/problem+json" in the Content-Type. I had to create a custom parser just to make HTTParty parse the response from the API.
Can you guys add this content type in the SupportedFormats?
My custom parser: