JSONPath Plus

JSONPath Plus is a library for analyzing, transforming, and selectively extracting data from JSON documents (and JavaScript objects).

PubNub Functions support this library in versions ^9.0.0.

The jsonpath module is made available with the following require() statement:

const {JSONPath} = require('jsonpath'); 

Exposed constructors

This library provides a class named JSONPath which you can use to perform operations on your JSON data. This constructor is the main way to interact with the library.

Example

        const {JSONPath} = require('jsonpath');        

const json_sample = {
store: {
book: [
{
category: "reference",
author: "Nigel Rees",
title: "Sayings of the Century",
price: 8.95,
},
{
category: "fiction",
author: "Evelyn Waugh",
title: "Sword of Honour",
show all 32 lines
Functions support

Functions provides a rich set of tools, and this documentation does not cover all of the potential situations you may encounter. If you need help with a situation not covered by the documentation, please contact PubNub Support

Last updated on