Return the same parse options, but disable any options that could interfere with fragment inspection
| 130 | // Return the same parse options, but disable any options that could interfere with |
| 131 | // fragment inspection |
| 132 | json::ParseOptions GetInitialParseOptions(json::ParseOptions options) { |
| 133 | options.explicit_schema = nullptr; |
| 134 | options.unexpected_field_behavior = json::UnexpectedFieldBehavior::InferType; |
| 135 | return options; |
| 136 | } |
| 137 | |
| 138 | Result<std::shared_ptr<StructType>> ParseToStructType( |
| 139 | std::string_view data, const json::ParseOptions& parse_options, MemoryPool* pool) { |
no outgoing calls
no test coverage detected