The payload includes many variations for the supported
For a small JsonSchema, the example in the jsonToolkit palette demonstrates how to use a program object[^1] to replace units:
/**
* Allows Json types to to be overridden when placed under JsonSchema/config/overrides/
*/
public BValue onOverride(final BValue input)
{
if (input instanceof BUnit)
{
javax.baja.units.UnitDatabase unitDB = javax.baja.units.UnitDatabase.getDefault()
javax.baja.units.UnitDatabase.Quantity quantity =
unitDB.getQuantity(input.as(BUnit.class))
if (quantity != null)
{
return BString.make(input.as(BUnit.class).getSymbol() + ":" + quantity.getName())
}
}
// If we can't override the value then just return it as we found it
return input
}[^1]: To improve maintainability and station loading time in the event that a program object is duplicated repeatedly, use the ProgramBuilder.
To use the program, drag this component into the folder of the schema.

Developers could also override the doOverride(BValue value) method in their own BTypeOverride variant.