src/bitcoinrpc.cpp
/** Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null)
 * as well as objects and arrays.
 */
Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null)
as well as objects and arrays.
Non - RFC4627 JSON parser accepts internal values ( such as numbers true false null ) as well as objects and arrays .
UniValue ParseNonRFCJSONValue(const std::string& strVal)
{
    UniValue jVal;
    if (!jVal.read(std::string("[")+strVal+std::string("]")) || !jVal.isArray() || jVal.size()!=1)
        throw std::runtime_error(std::string("Error parsing JSON:")+strVal);
    return jVal[0];
}
UniValue ParseNonRFCJSONValue ( const std :: string & strVal ) { UniValue jVal ; if ( ! jVal . read ( std :: string ( " " ) + strVal + std :: string ( " " ) ) || ! jVal . isArray ( ) || jVal . size ( ) != 1 ) throw std :: runtime_error ( std :: string ( " " ) + strVal ) ; return jVal [ 0 ] ; }
Non-RFC4627 JSON parser, accepts internal values (such as numbers, true, false, null)
 as well as objects and arrays.
Non - RFC4627 JSON parser accepts internal values ( such as numbers true false null ) as well as objects and arrays .