public Object jsonCompatible(boolean includePoints, boolean includeGeometries) {
    """
	Build a JSON compatible object
	
	@param includePoints     true to include point geometries, ignored if includeGeometries is true
	@param includeGeometries true to include all geometry types
	@return JSON compatible object
    """
        Object jsonObject = null;
        if (rows == null || rows.isEmpty()) {
            jsonObject = count;
        } else {
            List<Object> jsonRows = new ArrayList<>();
            for (FeatureRowData row : rows) {
                jsonRows.add(row.jsonCompatible(includePoints, includeGeometries));
            }
            jsonObject = jsonRows;
        }

        return jsonObject;
    }
public Object jsonCompatible(boolean includePoints, boolean includeGeometries) {
        Object jsonObject = null;
        if (rows == null || rows.isEmpty()) {
            jsonObject = count;
        } else {
            List<Object> jsonRows = new ArrayList<>();
            for (FeatureRowData row : rows) {
                jsonRows.add(row.jsonCompatible(includePoints, includeGeometries));
            }
            jsonObject = jsonRows;
        }

        return jsonObject;
    }
public Object jsonCompatible ( boolean includePoints , boolean includeGeometries ) { Object jsonObject = null ; if ( rows == null || rows . isEmpty ( ) ) { jsonObject = count ; } else { List < Object > jsonRows = new ArrayList <> ( ) ; for ( FeatureRowData row : rows ) { jsonRows . add ( row . jsonCompatible ( includePoints , includeGeometries ) ) ; } jsonObject = jsonRows ; } return jsonObject ; }
Build a JSON compatible object

@param includePoints     true to include point geometries, ignored if includeGeometries is true
@param includeGeometries true to include all geometry types
@return JSON compatible object
Build a JSON compatible object