#ifndef SRL_COMMON_H_
#define SRL_COMMON_H_
#include "srl_inline.h"
/* inspired by JSON::XS code */
#if __GNUC__ >= 3
# define expect(expr,value) __builtin_expect((expr), (value))
#else
# define exp
rialized
document.
=item L<Sereal::Path> - a query language for Sereal. It's similar to XPath or
JSONPath.
=back
The result of this documentation describes Sereal::Path module. For others
please us
('$[*][foo]');
=head2 Description
Sereal::Path for Sereal is the same as XPath for XML or JSONPath for JSON.
Sereal::Path can directly work with encoded Sereal document. In other words,
there is no
ax from JSONPath. Its documentation can be
found at L<http://goessner.net/articles/JsonPath/>.
However, Sereal::Path supports a subset of JSONPath. Below is the comparasion
between XPath, JSONPath an
#ifndef SRL_COMMON_H_
#define SRL_COMMON_H_
#include "srl_inline.h"
/* inspired by JSON::XS code */
#if __GNUC__ >= 3
# define expect(expr,value) __builtin_expect((expr), (value))
#else
# define exp
$jsonxs, $msgpack, $dd_noindent, $dd_indent, $cbor
);
my $storable_tag= "strbl";
my $sereal_tag= "srl";
my %meta = (
jxs => {
enc => '$::jsonxs->encode($data);',
dec => '$::jsonx
);',
name => 'JSON::XS OO',
init => sub {
$jsonxs = JSON::XS->new()->allow_nonref();
},
use => 'use JSON::XS qw(decode_json encode_json);',
},
ddl =
. $x;
},
}
);
}
my %names = (
"JSON::XS" => 'json xs',
"Data::Dumper::Limited" => 'ddl',
"Data::MessagePack"
#ifndef SRL_COMMON_H_
#define SRL_COMMON_H_
#include "srl_inline.h"
/* inspired by JSON::XS code */
#if __GNUC__ >= 3
# define expect(expr,value) __builtin_expect((expr), (value))
#else
# define exp