--- title: "parseJSON" slug: "calc-function-parse-json" updated: 2026-05-12T13:46:24Z published: 2026-05-12T13:46:24Z canonical: "docs.lobstersoftware.com/calc-function-parse-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. # parseJSON *See also*: [toJSON](/v1/docs/en/calc-function-to-json) > [!NOTE] > With this function a JSON string can be parsed as an object. > > > [!TIP] > > Tooltip > > > > Syntax: *$parseJSON(jsonString[,classField=class])* > > > > | Parameter | Description | > > | --- | --- | > > | `jsonString` | The object as JSON string. For fixed values, the parser-specific characters must be escaped. | > > | `classField(optional)` | Default value = "class", specifies the property in which the class name is to be searched. This may need to be set to "clazz". | > > > > Returns the parsed object. ## Syntax *$parseJSON(jsonString[,classField=class])* ## Parameter | Name | Description | | --- | --- | | *jsonString* | The object as JSON string. For fixed values, the parser-specific characters must be escaped: ```plaintext \ => \\ { => \{ } => \} [ => \[ ] => \] ( => \( ) => \) $ => \$ , => \, ``` | | *classField* | Optional, default value = "class", specifies the property in which the class name is to be searched. This may need to be set to "clazz". | ## Return value The object parsed from JSON. ## Example Listing of at least one or more examples. | Syntax | Result | | --- | --- | | $parseJSON(\{"name": "Hans"\}) | ```json { "name": "Hans" } ``` |