Turn JSON objects into queryable documents