I recently ran into a situation where I wanted to be able to search a JSON object of indeterminate shape and size with arbitrary nested arrays of objects. To do this I have put together a simple method to allow recursive traversal of nested objects and arrays of objects with Javascript to allow you to return an array of matched object results based on a key value.
Recursively Search a Nested JSON Object
Posted 10-Feb-2015 by Code Playground in