Ryan-CW-Code / RyanDocs

Ryan文档中心
https://ryan-cw-code.github.io/RyanDocs/
Apache License 2.0
0 stars 0 forks source link

请问如何将一个64位的整数反序列化 #1

Open StarryPortrait opened 5 hours ago

StarryPortrait commented 4 hours ago

还有一个问题

void ryanjson_test2()
{
    RyanJson_t jsonRoot = RyanJsonCreateObject();

    RyanJsonAddDoubleToObject(jsonRoot, "double", 16.89);
    char *str = RyanJsonPrint(jsonRoot, 250, RyanJsonFalse, NULL);
    printf("%s\n", str);

    RyanJsonFree(str);
    RyanJsonDelete(jsonRoot);
}

当我使用如上,反序列化double时,输出结果为 {"double":}