| 134 | namespace { |
| 135 | |
| 136 | bool |
| 137 | validate( string_view s ) |
| 138 | { |
| 139 | // Parse with the null parser and return false on error |
| 140 | null_parser p; |
| 141 | system::error_code ec; |
| 142 | p.write( s.data(), s.size(), ec ); |
| 143 | if( ec ) |
| 144 | return false; |
| 145 | |
| 146 | // The string is valid JSON. |
| 147 | return true; |
| 148 | } |
| 149 | |
| 150 | parse_options |
| 151 | make_options( |
no test coverage detected