Examining paths in a JSON file; this is a small section of a typical "recipes" file
// Path to given node:
[ // "["
{ // "[{" (1)
"recipeName": "Lemonade", // "[{recipeName"
"maxFlowRate": 80, // "[{maxFlowRate"
"recipeId": 21020, // "[{recipeId"
"ingredientsMix": [ // "[{ingredientsMix["
{ // "[{ingredientsMix[{"
"partId": 1048708, // "[{ingredientsMix[{partId"
"volVolPercent": 0.1 // "[{ingredientsMix[{volVolPercent"
}, // "[{ingredientsMix[}"
{ // "[{ingredientsMix[{" (next 4 lines are duplicate paths)
"partId": 1049088, // "[{ingredientsMix[{partId"
"volVolPercent": 0.662 // "[{ingredientsMix[{volVolPercent"
} // "[{ingredientsMix[}"
], // "[{ingredientsMix[]"
"preferredVersion": true, // "[{preferredVersion"
"caloricValuePerOz": 13.18379, // "[{caloricValuePerOz"
"recipeVersion": 5 // "[{recipeVersion"
}, // "[}" (2)
{ // "[{"
"recipeName": "Limeade", // etc.
"maxFlowRate": 82,
"recipeId": 1903,
"ingredientsMix": [
{
"partId": 1048600,
"volVolPercent": 99.007
},
{
"partId": 1048900,
"volVolPercent": 0.662
},
{
"partId": 1048901,
"volVolPercent": 0.331
}
],
"preferredVersion": false,
"caloricValuePerOz": 0.39822,
"recipeVersion": 3
}
]