as written in the description, I added the same behavior as the XML handler. And for JSON, given the very few details we got after an error, I think this is useful.