s being sent from the parser as JSON.
=head2 validate_struct
Checks if given structure (either from constructor's C<struct> field, or
obtained after deserializing JSON obtained from parsing microser
r::Node>.
=head2 string
Helper method to return string value regardless of how it's provided in JSON.
This is required because of changes in underlying ruby library.
=head2 as_text
Returns this o
}
else { confess "Deadly warning: @_" }
};
# Useful common code
use HTTP::Tiny;
use JSON::MaybeXS;
use Pg::SQL::PrettyPrinter::Node;
our $VERSION = '0.11';
sub new {
my ( $class, %
croak( "Couldn't parse the queries! : " . Dumper( $res ) );
}
my $struct = decode_json( $res->{ 'content' } );
croak( "Parse error: " . $struct->{ 'error' } ) if exists $struct->{