JSONPath Plus

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

PubNub Functions provides native support for this library in versions 9.0.0+.

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

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

Exposed constructors

This library exposes JSONPath, which you use to query and manipulate JSON data. Use this entry point to perform operations on your data.

Example

1        const {JSONPath} = require('jsonpath');        
2
3 const json_sample = {
4 store: {
5 book: [
6 {
7 category: "reference",
8 author: "Nigel Rees",
9 title: "Sayings of the Century",
10 price: 8.95,
11 },
12 {
13 category: "fiction",
14 author: "Evelyn Waugh",
15 title: "Sword of Honour",
show all 32 lines
Functions support

Functions provides a rich set of tools. For help with situations not covered here, contact PubNub Support.

Last updated on