NAME

Nile::Deserializer - Data structures deserializer

SYNOPSIS

$data = $app->thaw->json($encoded);
$data = $app->thaw->yaml($encoded);
$data = $app->thaw->storable($encoded);
$data = $app->thaw->dumper($encoded);
$data = $app->thaw->xml($encoded);

# also deserialize method is an alias for freeze
$data = $app->deserialize->json($encoded);

DESCRIPTION

Nile::Deserializer - Data structures deserializer

json()

$encoded = qq!{"lname":"elsheshtawy","fname":"ahmed","phone":{"home":"02222444","mobile":"012222333"}}!;

$data = $app->thaw->json($encoded);

# returns:
# $data = {fname=>"ahmed", lname=>"elsheshtawy", phone=>{mobile=>"012222333", home=>"02222444"}};

Deserialize a JSON structure to a data structure.

yaml()

$data = $app->thaw->yaml($encoded);

# returns:
# $data = {fname=>"ahmed", lname=>"elsheshtawy", phone=>{mobile=>"012222333", home=>"02222444"}};

Deserialize a YAML structure to a data structure

storable()

$data = $app->thaw->storable($encoded);

# returns:
# $data = {fname=>"ahmed", lname=>"elsheshtawy", phone=>{mobile=>"012222333", home=>"02222444"}};

Deserialize a Storable structure to a data structure.

dumper()

$data = $app->thaw->dumper($encoded);

# returns:
# $data = {fname=>"ahmed", lname=>"elsheshtawy", phone=>{mobile=>"012222333", home=>"02222444"}};

Deserialize a Data::Dumper structure to a data structure.

xml()

$data = $app->thaw->xml($encoded);

# returns:
# $data = {fname=>"ahmed", lname=>"elsheshtawy", phone=>{mobile=>"012222333", home=>"02222444"}};

Deserialize a XML structure to a data structure

Bugs

This project is available on github at https://github.com/mewsoft/Nile.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Nile.

SOURCE

Source repository is at https://github.com/mewsoft/Nile.

SEE ALSO

See Nile for details about the complete framework.

AUTHOR

Ahmed Amin Elsheshtawy, احمد امين الششتاوى <mewsoft@cpan.org> Website: http://www.mewsoft.com

COPYRIGHT AND LICENSE

Copyright (C) 2014-2015 by Dr. Ahmed Amin Elsheshtawy احمد امين الششتاوى mewsoft@cpan.org, support@mewsoft.com, https://github.com/mewsoft/Nile, http://www.mewsoft.com

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