var args = {VehicleManipulation:[{
'a:Amount':[Amount],
'a:Comment':[Comment],
'a:Date':[date],
'a:DispatchingVehicleManipulationReasonID':[ReasonID],
'a:Distance':[Distance],
frEndTime? 'a:FirstDeadheadTripEndTime':[frEndTime], :'',
'a:FirstDeadheadTripStartTime':[frStartTime],
'a:SecondDeadheadTripEndTime':[secondEndTime],
'a:SecondDeadheadTripStartTime':[secondStartTime],
'a:SubsystemID':[SubsystemNO],
'a:VehicleID':[VehicleID],
'a:VehicleManipulationID':[VehicleManipulationID],
'a:VehicleName':[VehicleName],
}]};
How to put ternary operator to my example?
if variable has value put this line of code 'a:FirstDeadheadTripEndTime':[frEndTime], if not do not put anything
now I have syntax error