--- title: "convert map to JSON()" slug: "basic-map-to-json" updated: 2026-08-11T07:39:41Z published: 2026-08-11T07:39:41Z canonical: "docs.lobstersoftware.com/basic-map-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 map to JSON() This function returns a JSON string that is created from the contents of map **a**. See examples. ## Parameters | Parameter | Description | | --- | --- | | a | Name of the map. | | 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 Let us assume that the map *mymap* contains *a=*, *b=bbb*, *c=ccc*. The map *unknown* does *not* exist. | Parameter a | Parameter b | Parameter c | Result | | --- | --- | --- | --- | | mymap | | false | {"a":"\u003caaa\u003e","b":"bbb","c":"ccc"} | | mymap | | true | {"a":"","b":"bbb","c":"ccc"} | | 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.