Are we not calling this twice? It's already called in check_json_validity.