Skip Menu |
 

This queue is for tickets about the JSON-Path CPAN distribution.

Report information
The Basics
Id: 122493
Status: resolved
Priority: 0/
Queue: JSON-Path

People
Owner: popefelix [...] gmail.com
Requestors: baldmantom [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.310
Fixed in: 0.400



Subject: Changed behavior - get() returns an array with a single, undef element when no results are found
Download (untitled) / with headers
text/plain 163b
Again, not sure when this changed, but as of v0.205, if get() failed to match anything, the resulting array was empty. Attaching a script which shows the problem.
Subject: json_path_get_bug.pl
#! /usr/bin/env perl use strict; use warnings; use Test::More; use Data::Dumper; use JSON::Path; my $orig = { bar => 1 }; my $p = JSON::Path->new("\$foo"); my @res = $p->get($orig); is_deeply ( \@res, [ ], "result array when no match" ); done_testing();
Download (untitled) / with headers
text/plain 287b
On Fri Jul 14 17:51:04 2017, baldmantom wrote: Show quoted text
> Again, not sure when this changed, but as of v0.205, if get() failed > to match anything, the resulting array was empty. > > Attaching a script which shows the problem.
Well, nuts. Looks like I broke some stuff. :( I'll get on it. :)
Download (untitled) / with headers
text/plain 287b
On Fri Jul 14 17:51:04 2017, baldmantom wrote: Show quoted text
> Again, not sure when this changed, but as of v0.205, if get() failed > to match anything, the resulting array was empty. > > Attaching a script which shows the problem.
Well, nuts. Looks like I broke some stuff. :( I'll get on it. :)
Download (untitled) / with headers
text/plain 375b
On Fri Jul 14 18:05:39 2017, popefelix wrote: Show quoted text
> On Fri Jul 14 17:51:04 2017, baldmantom wrote:
> > Again, not sure when this changed, but as of v0.205, if get() failed > > to match anything, the resulting array was empty. > > > > Attaching a script which shows the problem.
> > Well, nuts. Looks like I broke some stuff. :( > > I'll get on it. :)
Will be fixed in 0.400
Download (untitled) / with headers
text/plain 375b
On Fri Jul 14 18:05:39 2017, popefelix wrote: Show quoted text
> On Fri Jul 14 17:51:04 2017, baldmantom wrote:
> > Again, not sure when this changed, but as of v0.205, if get() failed > > to match anything, the resulting array was empty. > > > > Attaching a script which shows the problem.
> > Well, nuts. Looks like I broke some stuff. :( > > I'll get on it. :)
Will be fixed in 0.400
Download (untitled) / with headers
text/plain 447b
On Mon Jul 17 18:40:26 2017, popefelix wrote: Show quoted text
> On Fri Jul 14 18:05:39 2017, popefelix wrote:
> > On Fri Jul 14 17:51:04 2017, baldmantom wrote:
> > > Again, not sure when this changed, but as of v0.205, if get() failed > > > to match anything, the resulting array was empty. > > > > > > Attaching a script which shows the problem.
> > > > Well, nuts. Looks like I broke some stuff. :( > > > > I'll get on it. :)
> > Will be fixed in 0.400


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.