| 466 | } |
| 467 | |
| 468 | var JSON::fromString (StringRef text) |
| 469 | { |
| 470 | try |
| 471 | { |
| 472 | return JSONParser (text.text).parseAny(); |
| 473 | } |
| 474 | catch (const JSONParser::ErrorException&) {} |
| 475 | |
| 476 | return {}; |
| 477 | } |
| 478 | |
| 479 | var JSON::parse (InputStream& input) |
| 480 | { |
nothing calls this directly
no test coverage detected