avoid raising unescessary `ArgumentError` in is_json?