| 83 | |
| 84 | |
| 85 | Dynamic::Var ParserImpl::parseImpl(const std::string& json) |
| 86 | { |
| 87 | if (_allowComments) |
| 88 | { |
| 89 | std::string str = json; |
| 90 | stripComments(str); |
| 91 | handle(str); |
| 92 | } |
| 93 | else handle(json); |
| 94 | |
| 95 | return asVarImpl(); |
| 96 | } |
| 97 | |
| 98 | |
| 99 | Dynamic::Var ParserImpl::parseImpl(std::istream& in) |