My Musings

Recursively Search a Nested JSON Object

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.
Read more