Prism · Core

$ref

Reads a value out of the source by JSONPath. A path starts with $. and names fields or array indexes.

The source
{
  user: {
    id: 'u1',
    name: 'Ada Lovelace',
    email: '[email protected]',
  },
  items: [{ sku: 'A1' }, { sku: 'A2' }, { sku: 'A3' }],
}
The config
{ $ref: '$.user.name' }
What comes out
'Ada Lovelace'
Output matches the expected value

Runs in this page on the installed package. The input and the expected output are defined by the example.