Group
Extension

Matches 3

mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Model.pm ( view source; MetaCPAN )
package Mojo::Util::Model;
use Mojo::Base -base;

our $VERSION = '0.0.17';

use Mojo::JSON qw(encode_json);

has 'exists' => sub {
    return shift->pk ? 1 : 0;
};

has 'id';

has 'keys_to_serialize' 
r));
    }

    return join(',', @array);
}

=head2 toJson

Returns a JSON representation of the model.

=cut

sub toJson {
    return encode_json(shift->serialize);
}

=head2 AUTOLOAD

Try to get a f
mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Collection/Formatter.pm ( view source; MetaCPAN )
o::Util::Collection::Formatter;
use Mojo::Base -base;

our $VERSION = '0.0.17';

use Mojo::JSON qw(encode_json);

=head2 asOptions

Return an array ref containing [{ value => $value, label => $label }
$header) if ($header);

    return join("\n", @array);
}

=head2 toJson

Convert collection to JSON string

=cut

sub toJson {
    my $self = shift;

    return encode_json($self->toArray(@_));
}

1;
mojo-util-collection ( C/CR/CRLCU/mojo-util-collection-v0.0.17.tar.gz, CRLCU, 2025; MetaCPAN )
mojo-util-collection/lib/Mojo/Util/Collection.pm ( view source; MetaCPAN )
toCsv($self->objects, @_);
}

=head2 toJson

    Convert collection to JSON string

=cut

sub toJson {
    my $self = shift;

    return $self->formatter->toJson($self->objects, @_);
}

=head2 touch


Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.