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
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();
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. :)
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. :)
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
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
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