dict.serialize Reference

Convert a dictionary's content to text

dict.serialize

Description

Use the dict.serialize object to output a serialized form of the contents of dictionary in text format. The text may be Dictionary Syntax, JSON, or Base64-compressed forms of these formats.

Discussion

Note: The colon (:) is a reserved character and is not supported in keys or values.

Different formats of serialization may be accessed by changing attributes to this object. However, these attributes should be used carefully.

  • the mode attribute may choose between JSON and dictionary syntax
  • the compress attribute will apply a compression algorithm
The non-default options all result in a single max symbol as output. This symbolization has the potential to bloat max's symbol table and thus degrade the overall performance of the max environment. Therefore it is recommended that you use the default (dictionary) mode with no compression.

Arguments

None.

Attributes

compress [int]

Apply compression to the serialized dictionary

mode [symbol]

Switch between dictionary syntax and JSON format

Common Box Attributes

Messages

dictionary

Arguments

name [symbol]
Name of a dictionary whose content will be serialized

See Also

Name Description
dict.deserialize
dict.group
dict.iter
dict.join
dict.pack
dict.print
dict.route
dict.slice
dict.strip
dict.unpack
dict.view
dict
Dictionaries Dictionaries