({{, (RefLink[AssociationFormat, paclet:ref/AssociationFormat]) 
is an option to (RefLink[TextString, paclet:ref/TextString]) and related functions that determines how associations are formatted.}})

OpenersNotesSection(Spacer1)Details

(RefLink[AssociationFormat, paclet:ref/AssociationFormat])->{"left","sep","right","arrow"} specifies that associations should be formatted as the delimiter "left", followed by entries in the association separated from each other by "sep", followed by the delimiter "right". Each key->value pair is formatted as key, followed by "arrow", followed by value.

(RefLink[AssociationFormat, paclet:ref/AssociationFormat])->(RefLink[Automatic, paclet:ref/Automatic]) indicates that the specification {"<|",", ","|>"," -> "} should be used, which corresponds to the ordinary syntax of associations in the Wolfram Language.

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Use default formatting:

TextString[<|"first"->1,"second"->2,"third"->3|>,AssociationFormat->Automatic]

Specify alternate formatting:

TextString[<|"first"->1,"second"->2,"third"->3|>,AssociationFormat->{"{\n\t",",\n\t","\n}",": "}]

TextString[<|"first"->1,"second"->2,"third"->3|>,AssociationFormat->{"[ ","; "," ]"," = "}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ListFormat, paclet:ref/ListFormat])  ▪  (RefLink[TextString, paclet:ref/TextString])  ▪  (RefLink[Riffle, paclet:ref/Riffle])  ▪  (RefLink[DelimitedSequence, paclet:ref/DelimitedSequence])}})}})