Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null) * as well as objects and arrays. */
| 212 | * as well as objects and arrays. |
| 213 | */ |
| 214 | UniValue ParseNonRFCJSONValue(const std::string& strVal) |
| 215 | { |
| 216 | UniValue jVal; |
| 217 | if (!jVal.read(std::string("[")+strVal+std::string("]")) || |
| 218 | !jVal.isArray() || jVal.size()!=1) |
| 219 | throw std::runtime_error(std::string("Error parsing JSON:")+strVal); |
| 220 | return jVal[0]; |
| 221 | } |
| 222 | |
| 223 | UniValue RPCConvertValues(const std::string &strMethod, const std::vector<std::string> &strParams) |
| 224 | { |