p5-json-path / lib / JSON / Path.pm

Toby Inkster 5f3a58a 


Toby Inkster 996333d 
Toby Inkster 5f3a58a 
Toby Inkster 996333d 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 


Toby Inkster 5f3a58a 
Toby Inkster 996333d 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 























Toby Inkster 5f3a58a 



Toby Inkster 9c2c79b 

Toby Inkster 5f3a58a 






























Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 
































Toby Inkster 5f3a58a 







Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 

Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 








Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 



Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 


Toby Inkster 5f3a58a 


Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 


Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 


Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 






Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 

Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 


Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 






Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 





Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 







Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 9c2c79b 



Toby Inkster 5f3a58a 

Toby Inkster 9c2c79b 
























































































































































































































Toby Inkster ee5ab97 
Toby Inkster 5f3a58a 
















































Toby Inkster 9c2c79b 

Toby Inkster 5f3a58a 




























Toby Inkster 9c2c79b 







Toby Inkster 5f3a58a 


Toby Inkster 9c2c79b 





















Toby Inkster 5f3a58a 












Toby Inkster 9c2c79b 






















Toby Inkster a1c1e30 





Toby Inkster 5f3a58a 




























Toby Inkster a1c1e30 











Toby Inkster 5f3a58a 










Toby Inkster a1c1e30 
Toby Inkster 4793346 
Toby Inkster 5f3a58a 
Toby Inkster 8a88bbc 





Toby Inkster 5f3a58a 











Toby Inkster 9c2c79b 
Toby Inkster 5f3a58a 
Toby Inkster 4793346 



Toby Inkster 5f3a58a 

















  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
package JSON::Path;

use 5.008;
use strict qw(vars subs);
use overload '""' => \&to_string;
no warnings;

our $AUTHORITY = 'cpan:TOBYINK';
our $VERSION   = '0.202';
our $Safe      = 1;

use Carp;
use JSON qw[from_json];
use Scalar::Util qw[blessed];
use lvalue ();

use Sub::Exporter -setup => {
	exports => [qw/ jpath jpath1 jpath_map /],
};

sub jpath
{
	my ($object, $expression) = @_;
	my @return = __PACKAGE__->new($expression)->values($object);
}

sub jpath1 :lvalue
{
	my ($object, $expression) = @_;
	__PACKAGE__->new($expression)->value($object);
}

sub jpath_map (&$$)
{
	my ($coderef, $object, $expression) = @_;
	return __PACKAGE__->new($expression)->map($object, $coderef);
}

sub new
{
	my ($class, $expression) = @_;
	return $expression
		if blessed($expression) && $expression->isa(__PACKAGE__);
	return bless \$expression, $class;
}

sub to_string
{
	my ($self) = @_;
	return $$self;
}

sub _get
{
	my ($self, $object, $type) = @_;
	$object = from_json($object) unless ref $object;
	
	my $helper = JSON::Path::Helper->new;
	$helper->{'resultType'} = $type;
	my $norm = $helper->normalize($$self);
	$helper->{'obj'} = $object;
	if ($$self && $object)
	{
		$norm =~ s/^\$;//;
		$helper->trace($norm, $object, '$');
		if (@{ $helper->{'result'} })
		{
			return @{ $helper->{'result'} };
		}
	}
	
	return;
}

sub _dive :lvalue
{
	my ($obj, $path) = @_;
	
	$path = [
		$path =~ /\[(.+?)\]/g
	] unless ref $path;
	
	while (@$path > 1) {
		my $chunk = shift @$path;
		if (JSON::Path::Helper::isObject($obj))
			{ $obj = $obj->{$chunk} }
		elsif (JSON::Path::Helper::isArray($obj))
			{ $obj = $obj->[$chunk] }
		else
			{ print "Huh?" }
	}
	
	my $chunk = shift @$path;
	lvalue::get {
		if (JSON::Path::Helper::isObject($obj))
			{ $obj = $obj->{$chunk} }
		elsif (JSON::Path::Helper::isArray($obj))
			{ $obj = $obj->[$chunk] }
		else
			{ print "hUh?" }
	}
	lvalue::set {
		if (JSON::Path::Helper::isObject($obj))
			{ $obj->{$chunk} = shift }
		elsif (JSON::Path::Helper::isArray($obj))
			{ $obj->[$chunk] = shift }
		else
			{ print "huH?" }
	}
}

sub paths
{
	my ($self, $object) = @_;
	return $self->_get($object, 'PATH');
}

sub get
{
	my ($self, $object) = @_;
	return $self->_get($object, 'VALUE');
}

sub set
{
	my ($self, $object, $value, $limit) = @_;
	my $count = 0;
	foreach my $path ( $self->_get($object, 'PATH') )
	{
		_dive($object, $path) = $value;
		++$count;
		last if $limit && ($count >= $limit);
	}
	return $count;
}

sub value :lvalue
{
	my ($self, $object) = @_;
	lvalue::get {
		my ($value) = $self->get($object);
		return $value;
	}
	lvalue::set {
		my $value = shift;
		$self->set($object, $value, 1);
	}
}

sub values
{
	my ($self, $object) = @_;
	my @values = $self->get($object);
	wantarray ? @values : scalar @values;
}

sub map
{
	my ($self, $object, $coderef) = @_;
	my $count;
	foreach my $path ( $self->_get($object, 'PATH') )
	{
		++$count;
		my $value = do {
			local $_ = _dive($object, $path);
			local $. = $path;
			scalar $coderef->();
		};
		_dive($object, $path) = $value;
	}
	return $count;
}

BEGIN {
	package JSON::Path::Helper;
	
	use 5.008;
	use strict qw(vars refs);
	no warnings;
	
	our $AUTHORITY = 'cpan:TOBYINK';
	our $VERSION   = '0.202';
	
	use Carp;
	use Scalar::Util qw[blessed];
	
	sub new
	{
		return bless {
			obj        => undef,
			resultType => 'VALUE',
			result     => [],
			subx       => [],
			}, $_[0];
	}
	
	sub normalize
	{
		my ($self, $x) = @_;
		$x =~ s/[\['](\??\(.*?\))[\]']/_callback_01($self,$1)/eg;
		$x =~ s/'?\.'?|\['?/;/g;
		$x =~ s/;;;|;;/;..;/g;
		$x =~ s/;\$|'?\]|'$//g;
		$x =~ s/#([0-9]+)/_callback_02($self,$1)/eg;
		$self->{'result'} = [];   # result array was temporarily used as a buffer
		return $x;
	}
	
	sub _callback_01
	{
		my ($self, $m1) = @_;
		push @{ $self->{'result'} }, $m1;
		my $last_index = scalar @{ $self->{'result'} } - 1;
		return "[#${last_index}]";
	}
	
	sub _callback_02
	{
		my ($self, $m1) = @_;
		return $self->{'result'}->[$m1];
	}
	
	sub asPath
	{
		my ($self, $path) = @_;
		my @x = split /\;/, $path;
		my $p = '$';
		my $n = scalar(@x);
		for (my $i=1; $i<$n; $i++)
		{
			$p .= /^[0-9]+$/ ? ("[".$x[$i]."]") : ("['".$x[$i]."']");
		}
		return $p;
	}
	
	sub store
	{
		my ($self, $p, $v) = @_;
		push @{ $self->{'result'} }, ( $self->{'resultType'} eq "PATH" ? $self->asPath($p) : $v )
			if $p;
		return !!$p;
	}
	
	sub trace
	{
		my ($self, $expr, $val, $path) = @_;
		
		return $self->store($path, $val) if "$expr" eq '';
		#return $self->store($path, $val) unless $expr;
		
		my ($loc, $x);
		{
			my @x = split /\;/, $expr;
			$loc  = shift @x;
			$x    = join ';', @x;
		}
		
		# in Perl need to distinguish between arrays and hashes.
		if (isArray($val)
		and $loc =~ /^\-?[0-9]+$/
		and exists $val->[$loc])
		{
			$self->trace($x, $val->[$loc], sprintf('%s;%s', $path, $loc));
		}
		elsif (isObject($val)
		and exists $val->{$loc})
		{
			$self->trace($x, $val->{$loc}, sprintf('%s;%s', $path, $loc));
		}
		elsif ($loc eq '*')
		{
			$self->walk($loc, $x, $val, $path, \&_callback_03);
		}
		elsif ($loc eq '..')
		{
			$self->trace($x, $val, $path);
			$self->walk($loc, $x, $val, $path, \&_callback_04);
		}
		elsif ($loc =~ /\,/)  # [name1,name2,...]
		{
			$self->trace($_.';'.$x, $val, $path)
				foreach split /\,/, $loc;
		}
		elsif ($loc =~ /^\(.*?\)$/) # [(expr)]
		{
			my $evalx = $self->evalx($loc, $val, substr($path, rindex($path,";")+1));
			$self->trace($evalx.';'.$x, $val, $path);
		}
		elsif ($loc =~ /^\?\(.*?\)$/) # [?(expr)]
		{
			# my $evalx = $self->evalx($loc, $val, substr($path, rindex($path,";")+1));
			$self->walk($loc, $x, $val, $path, \&_callback_05);
		}
		elsif ($loc =~ /^(-?[0-9]*):(-?[0-9]*):?(-?[0-9]*)$/) # [start:end:step]  python slice syntax
		{
			$self->slice($loc, $x, $val, $path);
		}
	}
	
	sub _callback_03
	{
		my ($self, $m, $l, $x, $v, $p) = @_;
		$self->trace($m.";".$x,$v,$p);
	}
	
	sub _callback_04
	{
		my ($self, $m, $l, $x, $v, $p) = @_;
		
		if (isArray($v)
		and isArray($v->[$m]) || isObject($v->[$m]))
		{
			$self->trace("..;".$x, $v->[$m], $p.";".$m);
		}
		elsif (isObject($v)
		and isArray($v->{$m}) || isObject($v->{$m}))
		{
			$self->trace("..;".$x, $v->{$m}, $p.";".$m);
		}
	}
	
	sub _callback_05
	{
		my ($self, $m, $l, $x, $v, $p) = @_;
		
		$l =~ s/^\?\((.*?)\)$/$1/g;
		
		my $evalx;
		if (isArray($v))
		{
			$evalx = $self->evalx($l, $v->[$m]);
		}
		elsif (isObject($v))
		{
			$evalx = $self->evalx($l, $v->{$m});
		}
		
		$self->trace($m.";".$x, $v, $p)
			if $evalx;
	}
	
	sub walk
	{
		my ($self, $loc, $expr, $val, $path, $f) = @_;
		
		if (isArray($val))
		{
			map {
				$f->($self, $_, $loc, $expr, $val, $path);
			} 0..scalar @$val;
		}
		
		elsif (isObject($val))
		{
			map {
				$f->($self, $_, $loc, $expr, $val, $path);
			} keys %$val;
		}
		
		else
		{
			croak('walk called on non hashref/arrayref value, died');
		}
	}
	
	sub slice
	{
		my ($self, $loc, $expr, $v, $path) = @_;
		
		$loc =~ s/^(-?[0-9]*):(-?[0-9]*):?(-?[0-9]*)$/$1:$2:$3/;
		my @s   = split /\:/, $loc;
		my $len = scalar @$v;
		
		my $start = $s[0]+0 ? $s[0]+0 : 0;
		my $end   = $s[1]+0 ? $s[1]+0 : $len;
		my $step  = $s[2]+0 ? $s[2]+0 : 1;
		
		$start = ($start < 0) ? max(0,$start+$len) : min($len,$start);
		$end   = ($end < 0)   ? max(0,$end+$len)   : min($len,$end);
		
		for (my $i=$start; $i<$end; $i+=$step)
		{
			$self->trace($i.";".$expr, $v, $path);
		}
	}
	
	sub max
	{
		return $_[0] > $_[1] ? $_[0] : $_[1];
	}
	
	sub min
	{
		return $_[0] < $_[1] ? $_[0] : $_[1];
	}
	
	sub evalx
	{
		my ($self, $x, $v, $vname) = @_;
		
		croak('non-safe evaluation, died') if $JSON::Path::Safe;
			
		my $expr = $x;
		$expr =~ s/\$root/\$self->{'obj'}/g;
		$expr =~ s/\$_/\$v/g;
		
		local $@ = undef;
		my $res = eval $expr;
		
		if ($@)
		{
			croak("eval failed: `$expr`, died");
		}
		
		return $res;
	}
	
	sub isObject
	{
		my $obj = shift;
		return 1 if ref($obj) eq 'HASH';
		return 1 if blessed($obj) && $obj->can('typeof') && $obj->typeof eq 'HASH';
		return;
	}
	
	sub isArray
	{
		my $obj = shift;
		return 1 if ref($obj) eq 'ARRAY';
		return 1 if blessed($obj) && $obj->can('typeof') && $obj->typeof eq 'ARRAY';
		return;
	}
};

1;

__END__

=head1 NAME

JSON::Path - search nested hashref/arrayref structures using JSONPath

=head1 SYNOPSIS

 my $data = {
  "store" => {
    "book" => [ 
      { "category" =>  "reference",
        "author"   =>  "Nigel Rees",
        "title"    =>  "Sayings of the Century",
        "price"    =>  8.95,
      },
      { "category" =>  "fiction",
        "author"   =>  "Evelyn Waugh",
        "title"    =>  "Sword of Honour",
        "price"    =>  12.99,
      },
      { "category" =>  "fiction",
        "author"   =>  "Herman Melville",
        "title"    =>  "Moby Dick",
        "isbn"     =>  "0-553-21311-3",
        "price"    =>  8.99,
      },
      { "category" =>  "fiction",
        "author"   =>  "J. R. R. Tolkien",
        "title"    =>  "The Lord of the Rings",
        "isbn"     =>  "0-395-19395-8",
        "price"    =>  22.99,
      },
    ],
    "bicycle" => [
      { "color": "red",
        "price": 19.95,
      },
    ],
  },
 };
 
 # All authors of books in the store
 my $jpath   = JSON::Path->new('$.store.book[*].author');
 my @authors = $jpath->values($data);
 
 # The author of the last (by order) book
 my $jpath   = JSON::Path->new('$..book[-1:]');
 my $tolkien = $jpath->value($data);

=head1 DESCRIPTION

This module implements JSONPath, an XPath-like language for searching
JSON-like structures.

JSONPath is described at L<http://goessner.net/articles/JsonPath/>.

=head2 Constructor

=over 4

=item C<<  JSON::Path->new($string)  >>

Given a JSONPath expression $string, returns a JSON::Path object.

=back

=head2 Methods

=over 4

=item C<<  values($object)  >>

Evaluates the JSONPath expression against an object. The object $object
can be either a nested Perl hashref/arrayref structure, or a JSON string
capable of being decoded by JSON::from_json.

Returns a list of structures from within $object which match against the
JSONPath expression. In scalar context, returns the number of matches.

=item C<<  value($object)  >>

Like C<values>, but returns just the first value. This method is an lvalue
sub, which means you can assign to it:

  $path->values('$.name') = 'Bob';

=item C<<  paths($object)  >>

As per C<values> but instead of returning structures which match the
expression, returns canonical JSONPaths that point towards those structures.

=item C<<  get($object)  >>

In list context, identical to C<< values >>, but in scalar context returns
the first result.

=item C<<  set($object, $value, $limit)  >>

Alters C<< $object >>, setting the paths to C<< $value >>. If set, then
C<< $limit >> limits the number of changes made.

Returns the number of changes made.

=item C<<  map($object, $coderef)  >>

Conceptually similar to Perl's C<map> keyword. Executes the coderef
(in scalar context!) for each match of the path within the object,
and sets a new value from the coderef's return value. Within the
coderef, C<< $_ >> may be used to access the old value, and C<< $. >>
may be used to access the curent canonical JSONPath.

=item C<<  to_string  >>

Returns the original JSONPath expression as a string.

This method is usually not needed, as the JSON::Path should automatically
stringify itself as appropriate. i.e. the following works:

 my $jpath = JSON::Path->new('$.store.book[*].author');
 print "I'm looking for: " . $jpath . "\n";

=back

=head2 Functions

The following functions are available for export, but are not exported
by default:

=over

=item C<< jpath($object, $path_string) >>

Shortcut for C<< JSON::Path->new($path_string)->values($object) >>. That is,
it can be used as an lvalue.

=item C<< jpath1($object, $path_string) >>

Shortcut for C<< JSON::Path->new($path_string)->value($object) >>. That is,
it can be used as an lvalue.

=item C<< jpath_map { CODE } $object, $path_string >>

Shortcut for C<< JSON::Path->new($path_string)->map($object, $code) >>. 

=back

=head1 PERL SPECIFICS

JSONPath is intended as a cross-programming-language method of
searching nested object structures. There are however, some things
you need to think about when using JSONPath in Perl...

=head2 JSONPath Embedded Perl Expressions

JSONPath expressions may contain subexpressions that are evaluated
using the native host language. e.g.

 $..book[?($_->{author} =~ /tolkien/i)]

The stuff between "?(" and ")" is a Perl expression that must return
a boolean, used to filter results. As arbitrary Perl may be used, this
is clearly quite dangerous unless used in a controlled environment.
Thus, it's disabled by default. To enable, set:

 $JSON::Path::Safe = 0;

There are some differences between the JSONPath spec and this
implementation.

=over 4

=item * JSONPath uses a variable '$' to refer to the root node.
This is not a legal variable name in Perl, so '$root' is used
instead.

=item * JSONPath uses a variable '@' to refer to the current node.
This is not a legal variable name in Perl, so '$_' is used
instead.

=back

=head2 Blessed Objects

Blessed objects are generally treated as atomic values; JSON::Path
will not follow paths inside them. The exception to this rule are blessed
objects where:

  Scalar::Util::blessed($object)
  && $object->can('typeof')
  && $object->typeof =~ /^(ARRAY|HASH)$/

which are treated as an unblessed arrayref or hashref appropriately.

=head1 BUGS

Please report any bugs to L<http://rt.cpan.org/>.

=head1 SEE ALSO

Specification: L<http://goessner.net/articles/JsonPath/>.

Implementations in PHP, Javascript and C#:
L<http://code.google.com/p/jsonpath/>.

Related modules: L<JSON>, L<JSON::JOM>, L<JSON::T>, L<JSON::GRDDL>,
L<JSON::Hyper>, L<JSON::Schema>.

Similar functionality: L<Data::Path>, L<Data::DPath>, L<Data::SPath>,
L<Hash::Path>, L<Path::Resolver::Resolver::Hash>, L<Data::Nested>,
L<Data::Hierarchy>... yes, the idea's not especially new. What's different
is that JSON::Path uses a vaguely standardised syntax with implementations
in at least three other programming languages.

=head1 AUTHOR

Toby Inkster E<lt>tobyink@cpan.orgE<gt>.

This module is pretty much a straight line-by-line port of the PHP
JSONPath implementation (version 0.8.x) by Stefan Goessner.
See L<http://code.google.com/p/jsonpath/>.

=head1 COPYRIGHT AND LICENCE

Copyright 2007 Stefan Goessner.

Copyright 2010-2012 Toby Inkster.

This module is tri-licensed. It is available under the X11 (a.k.a. MIT)
licence; you can also redistribute it and/or modify it under the same
terms as Perl itself.

=head2 a.k.a. "The MIT Licence"

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.