22 lines
581 B
JSON
22 lines
581 B
JSON
{
|
|
"expression": ["to-string", ["get", "x"]],
|
|
"inputs": [
|
|
[{}, {"properties": {"x": 1}}],
|
|
[{}, {"properties": {"x": false}}],
|
|
[{}, {"properties": {"x": null}}],
|
|
[{}, {"properties": {"x": "string"}}],
|
|
[{}, {"properties": {"x": [1, 2]}}],
|
|
[{}, {"properties": {"x": {"y": 1}}}]
|
|
],
|
|
"expected": {
|
|
"compiled": {
|
|
"result": "success",
|
|
"isFeatureConstant": false,
|
|
"isZoomConstant": true,
|
|
"type": "string"
|
|
},
|
|
"outputs": ["1", "false", "", "string", "[1,2]", "{\"y\":1}"],
|
|
"serialized": ["to-string", ["get", "x"]]
|
|
}
|
|
}
|