generate a schema from a collection of json objects