This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

JSON.jsonValue(pathStr)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Stream parsing  [other Stream parsing operators]

 9.6.0

 As at baseline


JSON.jsonValue(pathStr)

New to v9.6.0, .jsonValue() allows a json object to be addressed by its JSON path. By comparison .json[keyStr] must use a key name. For example:

Text:  {
  "person": { "firstName": "Thomas", "lastName": "Roe" }, 
  "coordinates": [-90,41]
}
MyString: "person.lastName"

Then:

$Text.json['person']['lastName'] gives 'Roe'

But, easier:

$Text.json.jsonValue(person.lastName) gives 'Roe'

$Text.json.jsonValue($MyString) gives 'Roe' (in v9.6.0+)