# Create Container from JSON

This statement is used to create a container from supplied JSON text or text stored in a named variable. The directed path field is the name of the container to be created. If the specified container already exists, it is overwritten. If the function fails, a pre-existing container with the same name will be removed.

When using a named variable, the named variable field can contain any of the escape sequences defined in Escape Sequences. It is assumed that the named variable's content is properly formatted and escaped JSON text. This may be downloaded JSON returned by the Open URL statement.

When specifying JSON text directly you must select the Edit JSON button to edit the text in a resizable multi line edit panel. More information on this panel can be found here.

All other text fields in the statement can contain any of the escape sequences defined in Escape Sequences.

The action test state will be set to true if there are no errors. The action test state will be false if any errors occurred. Named variable Container Error will contain the errror text. If the Stop action on error option is enabled, the action will be terminated with an error message in the case of an error.

Example:

    Create container 'sample' from JSON text '{"list":["Hello World","All Done"]}'

Containers

Directed Paths