Parsing factory method - uses native parser
| 677 | |
| 678 | // Parsing factory method - uses native parser |
| 679 | static json parse(const fl::string &txt) FL_NOEXCEPT { |
| 680 | auto parsed = json_value::parse2(txt); |
| 681 | if (parsed) { |
| 682 | json result; |
| 683 | result.mValue = parsed; |
| 684 | return result; |
| 685 | } |
| 686 | return json(nullptr); |
| 687 | } |
| 688 | |
| 689 | // Convenience methods for creating arrays and objects |
| 690 | static json array() FL_NOEXCEPT { |
no test coverage detected