Fledge
An open source edge computing platform for industrial users
JSONPath Class Reference

A simple implementation of a JSON Path search mechanism to use alongside RapidJSON. More...

#include <JSONPath.h>

Public Member Functions

 JSONPath (const std::string &path)
 
 ~JSONPath ()
 Destructor for the JSONPath. More...
 
rapidjson::Value * findNode (rapidjson::Value &root)
 Find the matching node in the JSON document. More...
 

Detailed Description

A simple implementation of a JSON Path search mechanism to use alongside RapidJSON.

Constructor & Destructor Documentation

◆ ~JSONPath()

JSONPath::~JSONPath ( )

Destructor for the JSONPath.

Reclaim the vector of components.

Member Function Documentation

◆ findNode()

Value * JSONPath::findNode ( rapidjson::Value &  root)

Find the matching node in the JSON document.

param node The node to search from

Returns
the matching node. Throws an exception if there was no match

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