Added find() and find_first() methods for searching on a field in a collection of objects

Cleaned up some JSON-related code