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