Function modifiers
keyNames
Commentary
added in 0.3.3
Overrides key names for any generator that returns a map, letting you customize how the map looks. The keys should be the original key names, and the values the new key names.
Examples
Altering key names
{
"_gen": "constant",
"x": {
"latitude": 42,
"longitude": 64
},
"keyNames": {
"latitude": "lat",
"longitude": "lon"
}
}
[
{
"lat": 42,
"lon": 64
}
]
Specification
JSON schema
{
"type": "object",
"additionalProperties": {
"type": "string"
}
}