| 4 | using namespace jsoncons; |
| 5 | |
| 6 | extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, std::size_t size) |
| 7 | { |
| 8 | std::string s(reinterpret_cast<const char*>(data), size); |
| 9 | std::istringstream is(s); |
| 10 | |
| 11 | std::string s2; |
| 12 | json_string_encoder visitor(s2); |
| 13 | json_stream_reader reader(is, visitor); |
| 14 | std::error_code ec; |
| 15 | reader.read(ec); |
| 16 | |
| 17 | return 0; |
| 18 | } |