Description
Parse membersJson as an array, collect indexes whose direct member is exactly null, and return valid when that index list is empty.
GeoJSON distinguishes geometry objects, Features, FeatureCollections, and nullable Feature geometry. Type names and container structure identify these roles, but a recognized token or expected array member alone does not establish full validity.
Parse membersJson as an array, collect indexes whose direct member is exactly null, and return valid when that index list is empty.
When to use this tool
Use Geometry Collection Null Member Rejection when you need one explicit GeoJSON object-shape or container operation.
How to use the tool and how it works
- Enter membersJson. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read valid, nullIndexes. Inspect valid before interpreting the associated values.
Parse membersJson as an array, collect indexes whose direct member is exactly null, and return valid when that index list is empty.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| membersJson | Members Json | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| valid | Whether this specific check passes; not necessarily a full object-validity verdict. | Required. Boolean. |
| nullIndexes | Null Indexes | Required. Array of safe integer; maximum items 256. |
{
"input": {
"membersJson": "[null,{\"type\":\"Point\",\"coordinates\":[1,2]}]"
},
"output": {
"valid": false,
"nullIndexes": [
0
]
}
} Limitations and assumptions
- Only direct null members are rejected by this diagnostic. Other invalid members, such as numbers, and nested nulls are not checked; an empty list passes.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use a full GeoJSON validator and any needed geometric validity checks for interchange. Preserve the distinction between absence, null, empty containers, recognized type, and valid coordinates.
References
Similar or alternative tools
- Feature Geometry Collection Member Count
For null geometry return zero with the null flag; otherwise require GeometryCollection with an array geometries member and count its direct members.
- Geometry Collection Empty Member Role
Return indexes with true flags and set collectionEmpty only when the member list itself has length zero.