Path to an Array

If the path is specified as a string member of an array, then the path will return an array.

For example:

"array_of_objects": [ "@@$.phones" ],
"array_of_primitives": [ "@@$.numbers" ],

This indicates that the phones field and numbers fields return arrays. Even if the path points to something that is not an array, the result will be an array because it was specified that way in the template.

If the path references an array, and the template element is not an array, then only the first element in the array will be returned. To include all elements in the array, specify the "[<path>]".