Why does Boost property tree write_json save everything as string? Is it possible to change that?

后端 未结 7 1231
忘掉有多难
忘掉有多难 2020-11-30 20:05

I\'m trying to serialize using boost property tree write_json, it saves everything as strings, it\'s not that data are wrong, but I need to cast them explicitly every time a

7条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 20:24

    Boost confirms its implementation has no 100% conformance to JSON standard. Check the following link to see their explanation: Making a ptree variant that preserves JSON types is a future plan, but far off.!

提交回复
热议问题