载入中...
搜索中...
未找到
eve::json 命名空间参考

类

class  Document
 EVENGINE_API_FOUNDATION public API. 更多...
 
struct  Node
 
class  Value
 EVENGINE_API_FOUNDATION public API. 更多...
 

函数

Result< std::string > stringify (const eve::Value &value)
 Serialize the canonical owning Value as deterministic compact JSON.
 

函数说明

◆ stringify()

EVENGINE_API_FOUNDATION Result< std::string > eve::json::stringify ( const eve::Value &  value)

Serialize the canonical owning Value as deterministic compact JSON.

参数
valueOwning value containing only JSON-compatible kinds.
返回
JSON text, or SerializationError when a Double is NaN or infinity.
备注
Object keys are emitted in lexicographic order. This is the single canonical JSON serializer used by owning Value adapters.

在文件 Json.cpp 第 563 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), output, eve::SerializationError, eve::Result< T >::success() , 以及 value.

被这些函数引用 eve::Value::toJson().