objTemp = new JSONObject();
Collection<PropertyDescriptor> propertyDescriptors = mapLayer
.getFeatureSource().getSchema().getDescriptors();
for (Iterator<PropertyDescriptor> it = propertyDescriptors
.iterator(); it.hasNext();) {
PropertyDescriptor propertyDescriptor = it.next();
objTemp = new JSONObject();
objTemp
.put("name", propertyDescriptor.getName()
.getLocalPart());
objTemp.put("type", propertyDescriptor.getType().getBinding()
.getSimpleName());
arrayTemp.put(objTemp);
}
obj.put("fields", arrayTemp);