Files
2023-03-25 14:46:49 +01:00

33 lines
782 B
JSON

{
"expression": [
"match",
["string", ["get", "x"]],
["0-1", "a.b", "{}", "weird\u2028json\u2029issue"],
"match",
"otherwise"
],
"inputs": [
[{}, {"properties": {"x": "0-1"}}],
[{}, {"properties": {"x": "a.b"}}],
[{}, {"properties": {"x": "{}"}}],
[{}, {"properties": {"x": "weird\u2028json\u2029issue"}}],
[{}, {"properties": {"x": "1"}}]
],
"expected": {
"compiled": {
"result": "success",
"isFeatureConstant": false,
"isZoomConstant": true,
"type": "string"
},
"outputs": ["match", "match", "match", "match", "otherwise"],
"serialized": [
"match",
["string", ["get", "x"]],
["0-1", "a.b", "weird\u2028json\u2029issue", "{}"],
"match",
"otherwise"
]
}
}