--- title: "convert list to JSON()" slug: "basic-list-to-json" updated: 2026-08-11T07:38:50Z published: 2026-08-11T07:38:50Z canonical: "docs.lobstersoftware.com/basic-list-to-json" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # convert list to JSON() This function returns a JSON string that is created from the contents of list **a*.*** See examples. ## Parameters | Parameter | Description | | --- | --- | | a | Name of the list. | | b | (optional) If *true*, the JSON string is returned in pretty print format. Default: *false*. | | c | (optional) If *false*, certain characters (e.g. *"*, *<*, *>*) are replaced by Unicode escape sequences. If *true*, this is not done, except for the character *"*, which is replaced by *\u0022*. Default: *false*. | ## Examples Given is the list *mylist* with the content <*111>*, *222*, *333*. The list *unknown* does *not* exist. | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | mylist | | false | ["\u003c111\u003e","222","333"] | | mylist | | true | ["<111>","222","333"] | | unknown | | | [ ] | JSON (**J**ava**S**cript **O**bject **N**otation) is a lightweight text format for data exchange. The Lobster Data Platform handles JSON in integration profiles, web resources, and API interfaces. Value resolvers convert JSON data to internal objects and vice versa.