I have the following script that will loop over a huge JSON array to gather some information:
function recursiveTree(data, p_dim_name, p_dim_label, p_field_name,