JSON-Structure

 view release on metacpan or  search on metacpan

lib/JSON/Structure/JsonSourceLocator.pm  view on Meta::CPAN


=item * Deeply nested structures with many embedded strings containing braces/brackets

=item * Non-standard "relaxed" JSON (comments, trailing commas, unquoted keys)

=item * Very large documents where character-by-character parsing is slow

=back

For production use requiring precise positions in complex JSON, consider using
a streaming tokenizer like L<JSON::Streaming::Reader> or L<JSON::SL> that can
report byte offsets during parsing.

=cut

sub new {
    my ( $class, $json_text ) = @_;

    my $self = bless {
        json_text    => $json_text // '',
        line_offsets => [],



( run in 0.615 second using v1.01-cache-2.11-cpan-140bd7fdf52 )