Is there some syntax for setting properties based on a condition?
data: { userId: 7, actionId: 36, express: (myCondition ? true : null) // does n
first of all, thats javascript, not JSON.
the solution:
data: { userId: 7, actionId: 36 } if(myCondition) data["express"] = true;