NAME

Mojo::Autobox::Array - Autobox array methods for Mojo::Autobox

SYNOPSIS

use Mojo::Autobox;

# "a"
[qw/a b c/]->collection->first;

# '["x", "y", "z"]'
@array = (qw/x y z/);
@array->json;

DESCRIPTION

Array methods for Mojo::Autobox. These methods also apply to array references.

METHODS

collection

Returns an instance of Mojo::Collection, contructed from the elements of the invocant array.

json

Serializes the invocant array using "encode_json" in Mojo::JSON and returns the result.

j

An alias for "json".