in reply to JSON.pm and mod_perl

So the question is now?

Replies are listed 'Best First'.
Re^2: JSON.pm and mod_perl
by ultranerds (Hermit) on Mar 30, 2016 at 07:07 UTC
    Hi,

    A couple of questions really :)

    1) Why did I get that error with JSON::Tiny? With the JSON module, I do:
    use JSON; my $json = JSON->new; $json->allow_blessed(1); print $json->encode($values);
    ... but I couldn't find a way to "allow_blessed" when using the JSON::Tiny module

    2) If I decide to keep the JSON module... with the \0 and \1 variables now, will the rest of the JSON be thread safe? (I don't want other stuff getting mixed up in the returned json :))

    TIA

    Andy