extern Array read_json(const std::string& jsondata);
| 21 | using namespace json_spirit; |
| 22 | //extern Array read_json(const std::string& jsondata); |
| 23 | Array |
| 24 | read_json(const std::string& jsondata) |
| 25 | { |
| 26 | Value v; |
| 27 | |
| 28 | if (!read_string(jsondata, v) || v.type() != array_type) |
| 29 | { |
| 30 | BOOST_ERROR("Parse error."); |
| 31 | return Array(); |
| 32 | } |
| 33 | return v.get_array(); |
| 34 | } |
| 35 | |
| 36 | BOOST_AUTO_TEST_SUITE(base58_tests) |
| 37 |
no test coverage detected