I have an object that I want to decide to use or not to use, based on some fields. Field A as a decision field and Field B as a value field.
Is it possible to do if-statements on objects?
input.json
{
"companies": [
{
"name": "Sillicon Valley",
"country": "US"
},
...
{
"name": "Tech Hub",
"county": "Iceland"
}
]
}
output.json
if country == Iceland:
{
"companies": [
{
"name": "Tech Hub"
}
]
}