ProZ.com global directory of translation services
The translation workplace
Ideas

Specifying boolean values

In JSON, boolean values should be specified preferably as true or false, or else 1 for true and 0 for false.

In query parameters, an empty or null value is also considered false, and any other non-zero value is considered true.

To treat a boolean attribute as unset, the attribute must not be included in the data structure at all.