(jsonPath: JSONPath)
| 57 | } |
| 58 | |
| 59 | get(jsonPath: JSONPath): unknown { |
| 60 | const jsonAstNode = this.JsonAst; |
| 61 | if (!jsonAstNode) { |
| 62 | return undefined; |
| 63 | } |
| 64 | |
| 65 | if (jsonPath.length === 0) { |
| 66 | return getNodeValue(jsonAstNode); |
| 67 | } |
| 68 | |
| 69 | const node = findNodeAtLocation(jsonAstNode, jsonPath); |
| 70 | |
| 71 | return node === undefined ? undefined : getNodeValue(node); |
| 72 | } |
| 73 | |
| 74 | modify( |
| 75 | jsonPath: JSONPath, |
no outgoing calls
no test coverage detected