perl5ever has asked for the wisdom of the Perl Monks concerning the following question:
$album = Album->new; $album->add_song(Song->new(...)); ...
It's representation as JSON might look something like:
The object $album also has another representation as a non-blessed perl data structure:$as_json = q{ { album_title: ..., songs: [ { song_title: ..., }, { song_title: ..., }, ] } };
$as_perl = JSON->new->decode($as_json);
$as_perl is basically the perl incarnation of the json text.
I'm looking for a good descriptive name for the $as_perl representation. When converting from/to JSON and blessed perl objects, one inevitably has to deal with the $as_perl intermediate form, and I'd like to find a descriptive name to help name the classes and methods involved in the transformations.
Hope this makes sense.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Good name for decoded json text?
by ikegami (Patriarch) on May 09, 2011 at 20:43 UTC | |
by raybies (Chaplain) on May 09, 2011 at 21:59 UTC | |
Re: Good name for decoded json text?
by bluescreen (Friar) on May 10, 2011 at 00:30 UTC | |
Re: Good name for decoded json text?
by grantm (Parson) on May 09, 2011 at 21:31 UTC |