NAME

WWW::Bund::Response::JSON - JSON response — parses content to Perl data structure

VERSION

version 0.001

SYNOPSIS

use WWW::Bund::Response::JSON;

my $response = WWW::Bund::Response::JSON->new(
    content      => '{"result": "ok"}',
    content_type => 'application/json',
);

my $data = $response->data;  # { result => 'ok' }

DESCRIPTION

Parses JSON response content into Perl data structures (HashRef or ArrayRef).

Uses JSON::MaybeXS for parsing, which selects the fastest available JSON module (Cpanel::JSON::XS, JSON::XS, or JSON::PP).

Returns undef if content is empty.

data

Parsed JSON data (HashRef, ArrayRef, or undef). Lazy-built from content.

SUPPORT

Issues

Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-bund/issues.

CONTRIBUTING

Contributions are welcome! Please fork the repository and submit a pull request.

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Torsten Raudssus.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.