I\'ve got a collection of disparate, complex JSON objects from a CouchDB database. Each contains many levels of nested properties--for example,
tps_report.p
Theres a function defined on this blog to safely read nested properties from a JS object
It allows you to mine an object for properties... ie.
safeRead(tps_report, 'personnel_info', 'productivity', 'units_sold');
and if any part of the object chain is null or undefined it returns an empty string....