1. Yaroslav Stavnichiy
  2. nxjson
  3. Issues
Issue #1 resolved

Parse Large Interger Error

Yu Denzel
created an issue

Here is a sample.

    char buffer[] = "{\"val\": 429496729006}";
    const nx_json *json = nx_json_parse_utf8(buffer);
    std::cout << "intVal: " << json->child->int_value << std::endl;
    std::cout << "dblVal: " << json->child->dbl_value << std::endl;
    nx_json_free(json);

And the output is

intVal: 2147483647
dblVal: 2.14748e+009

Comments (7)

  1. Log in to comment