Container Data Types

A container is a variable that is a shell for other variables. For example, see the following JSON output:

{ 'sellerInfo' => { 'feedbackRatingStar' => 'blue' }}

In this JSON output, the sellerInfo name is a container. It's a means to identify the content within a nested hash.

In most languages, if the above hash were stored in variable my_hash, you'd access the seller info by:

my_hash['sellerInfo']
my_hash['sellerInfo']['feedbackRatingStar']