| 663 | } |
| 664 | |
| 665 | JSON JSON::getValue() const |
| 666 | { |
| 667 | Pos pos = skipString(); |
| 668 | checkPos(pos); |
| 669 | if (*pos != ':') |
| 670 | throw JSONException("JSON: expected :."); |
| 671 | ++pos; |
| 672 | checkPos(pos); |
| 673 | return JSON(pos, ptr_end, level + 1); |
| 674 | } |
| 675 | |
| 676 | |
| 677 | double JSON::toDouble() const |
no test coverage detected