You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to validate nodejs app POST input with JSONSelect. It would be nice if I could also manipulate the selected data. Like in the following code:
JSONSelect.forEach(".points_to_delete .id,"+".points_to_update .status,"+".points_to_update .task_id,"+".points_to_update .warning",args,function(item,itemManipulator){if(require('validator').isNumeric(item)){itemManipulator.setItemValue(parseInt(item))}else{throwError("Item is not numeric!")}})
Probably, it would be better to create JSONSelect.map() for this purposes. Thank you.
The text was updated successfully, but these errors were encountered:
I'm trying to validate nodejs app POST input with JSONSelect. It would be nice if I could also manipulate the selected data. Like in the following code:
Probably, it would be better to create JSONSelect.map() for this purposes. Thank you.
The text was updated successfully, but these errors were encountered: