Adding jQuery plugin to accurately serialize checkboxes.
Adding jQuery plugin to accurately serialize checkboxes.

By default, SerializeArray() will leave out checkboxes
that have the value 'false' ("off"). Because this function is
here being used to create a JSON string, which is then sent
to the REST API, these fields will be left out if not
checked. This will create a problem, if a) something
is being updated (via PUT), and b) checkbox is 'false' in form,
and c) the field is already 'true' on server.

This plugin solves this problem by accurately populating
'false' checkboxes, along with 'true' ones.

occrp/id-backend