Giter Site home page Giter Site logo

rapidjsonwrapper's Introduction

Getting Started with rapidjsonwrapper

Intro

rapidjsonwrapper是对rapidjson的一个简单封装

Build

mkdir build
cd build && cmake ..

Dependency

环境设置

编译选项设置

Usage

含有的功能有如下:

RJSON_DOC(doc)                                       # 定义json document
RJSON_VALUE_OBJ(value)                               # 定义json object value
RJSON_VALUE_ARRAY(value)                             # 定义json array value
RJSON_GET_ALLOC(doc, alloc)                          # 获取document的allocator
RJSON_READ_DOC_FROM_FILE(doc, filepath)              # 从指定文件中解析json
RJSON_READ_DOC_FROM_STRING(doc, string_value)        # 从字符串中解析json
RJSON_WRITE_DOC_TO_FILE(doc, filepath)               # json写入文件中(单行)
RJSON_WRITE_DOC_TO_STRING(doc, string_value)         # json写入字符串
RJSON_WRITE_DOC_TO_FILE_PRETTY(doc, filepath)        # json以pretty方式写入文件
RJSON_WRITE_DOC_TO_STRING_PRETTY(doc, string_value)  # json以pretty方式写入字符串
RJSON_HAS_KEY(rapid_value, key)                      # 是否存在key的value
RJSON_GET_VALUE(rapid_value, key, value)             # 获取某个key对应的value
RJSON_GET_RAPID_VALUE(rapid_value, key, value)       # 获取某个key对应的json node
RJSON_ADD_OBJ_VALUE(rapid_value, key, value, alloc)  # json添加key-value对
RJSON_ADD_ARRAY_VALUE(rapid_value, value, alloc)     # json添加array值

程序行为的描述

性能开销

rapidjsonwrapper's People

Stargazers

gezhengzheng avatar

Watchers

gezhengzheng avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.