opikalo / cpp-rapidjson-json-adapter

Implementation of C++ JSON Adapter based on rapidjson

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Build status codecov Codacy Badge

C++ JSON Adapter implementation for rapidjson

This repository implements the interface for the C++ JSON Server Adapter using Rapidjson.

Setup

Download using Conan

This library is designed to be installed by making use of Conan package manager. So, you just need to add the following requirement into your Conan recipe:

def requirements(self):
   self.requires("RapidJSONAdapter/1.1.0@systelab/stable")

Version number of this code snipped is set just as an example. Replace it for the desired package to retrieve.

As this package is not available on the conan-center, you will also need to configure a remote repository before installing dependencies:

conan remote add systelab-public https://systelab.jfrog.io/artifactory/api/conan/cpp-conan-production-local

See Conan documentation for further details on how to integrate this package with your build system.

Build from sources

See BUILD.md document for details.

Usage

Initialize the JSON adapter by creating an instance of the systelab::json::rapidjson::JSONAdapter class:

#include "RapidJSONAdapter/JSONAdapter.h"

std::unique_ptr<systelab::json::IJSONAdapter> jsonAdapter =
    std::make<systelab::json::rapidjson::JSONAdapter>();

Use the systelab::json::IJSONAdapter interface of the created object to access to the JSON features as described on C++ JSON Adapter documentation.

About

Implementation of C++ JSON Adapter based on rapidjson


Languages

Language:C++ 100.0%