malformed error only in the case of a json realtype