use JSON::MaybeXS;
use constant {
    false => JSON->false,
    true  => JSON->true,
};

We check the header content-type and accept to send the right boolean in REST interfaces.

There is also a problem with numeric, sometime sent as string. We send (without thinking about) everywhere 0 + $numeric and all is ok.

--Steffen


Am 28.11.2017 um 10:34 schrieb Pavel Zabolotniy via Moscow-pm:
Привет, moscow-pm!
Кто-нибудь сталкивался с проблемой http://www.perlmonks.org/?node_id=1021294 ? Как ее решали?
--
Moscow.pm mailing list
[email protected] | http://moscow.pm.org

Ответить