filter_json_object#
A sub that each decoded object is passed to; what it returns takes the object’s place.
Synopsis#
my $json = JSON::PP->new->filter_json_object(sub { bless $_[0], 'Point' });
What you get back#
The object. A filter that returns nothing leaves the object as it is; one that returns more than one value dies. A non-code argument removes the filter.