| 637 | } |
| 638 | |
| 639 | static JSON parse_null( const std::string &str, size_t &offset ) { |
| 640 | if( str.substr( offset, 4 ) != "null" ) { |
| 641 | throw std::runtime_error(std::string("JSON ERROR: Null: Expected 'null', found '") + str.substr( offset, 4 ) + "'"); |
| 642 | } |
| 643 | offset += 4; |
| 644 | return JSON(); |
| 645 | } |
| 646 | |
| 647 | static JSON parse_next( const std::string &str, size_t &offset ) { |
| 648 | char value; |