It does actually succeed in parsing a string but returns a 400 when it gets sent to the API function. The catch will take care of weird stuff that cannot be parsed while this `if` will take care of only slightly messed up non-objects.