Lumino
ln::JsonSerializer Class Reference

オブジェクトと JSON 文字列間のシリアライズ/デシリアライズ行うユーティリティです。 More...

#include <Serialization.hpp>

Static Public Member Functions

template<typename TValue >
static String serialize (TValue &&value, JsonFormatting formatting=JsonFormatting::Indented)
 オブジェクトを JSON 文字列へシリアライズします。 More...
 
template<typename TValue >
static void deserialize (const StringRef &jsonText, TValue &value)
 JSON 文字列をオブジェクトへデシリアライズします。 More...
 

Detailed Description

オブジェクトと JSON 文字列間のシリアライズ/デシリアライズ行うユーティリティです。

Member Function Documentation

◆ deserialize()

template<typename TValue >
static void ln::JsonSerializer::deserialize ( const StringRef jsonText,
TValue &  value 
)
inlinestatic

JSON 文字列をオブジェクトへデシリアライズします。

Parameters
[in]jsonText: JSON 文字列
[in]value: データを格納するオブジェクトへの参照

◆ serialize()

template<typename TValue >
static String ln::JsonSerializer::serialize ( TValue &&  value,
JsonFormatting  formatting = JsonFormatting::Indented 
)
inlinestatic

オブジェクトを JSON 文字列へシリアライズします。

Parameters
[in]value: データが格納されたオブジェクトへの参照
[in]formatting: JSON 文字列の整形方法
Returns
JSON 文字列

The documentation for this class was generated from the following file: