When Your Data Doesn't Fit Schema.org¶
ObjectsGrid stores business objects modeled on Schema.org: products, offers, orders, people, places, events, bookings. That covers most of what a shop or a service business keeps, and it's why the data is already structured data search engines read.
Then you need to store something Schema.org never thought of: a warranty claim's checklist, a form layout, a kiosk's screen settings. This post is about what to do then.
First, look again¶
Schema.org is bigger than it seems, and a close type with one extra field is better than a type of your own: you keep validation field by field, typed GraphQL, and JSON-LD for your pages. Before inventing a type:
- A kind of something: many types take an
additionalType, such as a Place that's aStoreor an Event that's aMusicEvent. - A product with a twist: a bundle is a Product whose
additionalTypeisProductCollection, and variants are a ProductGroup's. - A runtime setting or a toggle: AppConfigurations and FeatureFlags are built for them.
When nothing fits, there are two shapes for your own data.
GenericObject: typed values you can query¶
A GenericObject has a type name of yours, a namespace, your own id, and its values in typed lists:
{
"objectType": "warranty-claim",
"namespace": "com.example.service",
"objectID": "WC-2027-0042",
"stringAttributes": [{"name": "status", "val": "open"}, {"name": "serial", "val": "SN-88412"}],
"intAttributes": [{"name": "photos", "val": 3}],
"dateAttributes": [{"name": "purchased", "val": "2026-05-14T00:00:00Z"}],
"booleanAttributes": [{"name": "underWarranty", "val": true}]
}
Because every value is typed and named, lists can filter on them:
"the open warranty claims of products bought in 2026" is a where on stringAttributes and dateAttributes. Use a
GenericObject when you'll search your data by its values.
JSONObject: a document of your own¶
A JSONObject holds one JSON document, whatever its shape, in data:
{
"objectType": "checkout-form",
"namespace": "com.example.shop",
"name": "Checkout",
"data": {"fields": [{"name": "email", "type": "email", "required": true},
{"name": "giftNote", "type": "text", "maxLength": 200}],
"version": 3},
"dataSchema": "https://shop.example.com/schemas/form.json"
}
data is any JSON object up to 256 KB. It's stored and returned as sent, but not searched: lists filter on
objectType, namespace, name and tags. dataSchema can name a JSON Schema your apps follow; ObjectsGrid keeps it
and doesn't check it. Use a JSONObject for documents your app reads and writes whole: layouts, form definitions,
templates, a saved report's settings.
Which one¶
| Built-in type | GenericObject | JSONObject | |
|---|---|---|---|
| Shape | Schema.org, validated field by field | Your type name; typed attribute lists | Your type name; any JSON document |
| Filter on values | Every field | Every attribute | Not data: only type, namespace, name, tags |
| JSON-LD for your pages | Most types | No | No |
| Best for | Anything Schema.org describes | Records you search by value | Documents you read whole |
What you get either way¶
Your own types aren't second-class. Like every object, they have:
- access control: your ABAC policy decides who reads and writes them, by
objectTypewhere it matters; - versions: every write keeps the previous one, readable with
?version=, andIf-Matchprevents lost updates; - webhooks:
GenericObjectCreated,JSONObjectUpdatedand the rest reach your endpoints; - references: a GenericObject's
referenceAttributescan point to any object, and any object's references can point to them.
What they don't have is Schema.org meaning. They carry no at_context and have no JSON-LD document, because no
search engine would know what a warranty-claim is. When a type of yours turns out to be common, tell us: a type
many apps need is a candidate for the catalog.