-
The condition function
So to my understanding, Consider the following JSON: [{
"name": "hugo",
"email": "",
"permissions": [{
"capability": {
"Update": {}
},
"component": "/api/v1/organisation/b6f0c4ca-1f22-40ef-baae-f31ec52f558b"
}, {
"capability": {
"Read": {}
},
"component": "/api/v1/organisation/b6f0c4ca-1f22-40ef-baae-f31ec52f558b"
}, {
"capability": {
"Delete": {}
},
"component": "/api/v1/organisation/b6f0c4ca-1f22-40ef-baae-f31ec52f558b"
}, {
"capability": {
"Create": {}
},
"component": "/api/v1/organisation/b6f0c4ca-1f22-40ef-baae-f31ec52f558b"
}]
}, "blabla-Hugo"] Running the condition test Is this the intended behaviour? If so, the README should be clearer on this, I guess. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
This is the intended behavior. If the target JSON path is an array, it will return the length of the array, while if it is anything else, it will consider it as a string and return the length of the string. |
Beta Was this translation helpful? Give feedback.
This is the intended behavior.
If the target JSON path is an array, it will return the length of the array, while if it is anything else, it will consider it as a string and return the length of the string.