UNPKG

serverless-offline

Version:

Emulate AWS λ and API Gateway locally when developing your Serverless project

14 lines (9 loc) 311 B
'use strict'; const JSONPath = require('jsonpath-plus'); const debugLog = require('./debugLog'); module.exports = function jsonPath(json, path) { debugLog('Calling JSONPath:', path); const result = JSONPath({ json, path, wrap: false }); debugLog('JSONPath resolved:', result); return result; };