1 2 3 4 5 6 7 8
#include "univalue.h" int main (int argc, char *argv[]) { char buf[] = "___[1,2,3]___"; UniValue val; return val.read(buf + 3, 7) ? 0 : 1; }