ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::tool_rapidjson_value Class Reference

RapidJSON值查找辅助工具类。 More...

#include <njson.h>

Static Public Member Functions

static rapidjson::Value * find (rapidjson::Value *ajson, const char *akey)
 在JSON对象中查找指定键的成员。

Detailed Description

RapidJSON值查找辅助工具类。

提供安全的JSON成员查找功能。

Member Function Documentation

◆ find()

rapidjson::Value * ngl::tool_rapidjson_value::find ( rapidjson::Value * ajson,
const char * akey )
inlinestatic

在JSON对象中查找指定键的成员。

当akey为nullptr时返回ajson本身。

Parameters
ajsonJSON对象指针
akey要查找的键名(nullptr时返回ajson本身)
Returns
rapidjson::Value* 找到的值指针,未找到返回nullptr

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