Updated decoding JSON when content-type is text/plain