Is there some syntax for setting properties based on a condition?
data: { userId: 7, actionId: 36, express: (myCondition ? true : null) // does n
You could do something like this:
var json = JSON.stringify( { data: { userId: 7, actionId: 36, express: (myCondition ? true : null) } });