JSON Expressions
Extensible expressions for json objects based on angular expressions parser.
Install
Install using npm:
npm install json-exp
String interpolation
var result = ; resulthello; // => String: 'Hello World'
Expression evaluation
var json = a: 1 b: 2 c: $: 'a + b'; var result = ;resultc // => Number: 3 resulta = 3;resultc // => Number: 5
Scope
var scope = name: 'World'; var result = ; resulthello; // => String: 'Hello World'
Depth
var result = ; resultuserName; // => String: 'John'
var result = ; resultuserfullName; // => String: 'John Smith'