Detect all fields of objects in JSON array for filtering.

Closes #7.
This PR rides on the assumption that this returns an array. Let me know if it needs to work for single objects as well.