# JSON\_Parse

## `JSON_Parse` (FB)

FUNCTION\_BLOCK JSON\_Parse EXTENDS CBML.ETrigTl IMPLEMENTS IJSONConnector

{attribute ‘hide\_all\_locals’} {attribute ‘conditionalshow\_all\_locals’ := ‘SomeText’} {attribute ‘conditionalshow\_all\_locals’} {attribute ‘conditionalshow’ := ‘SomeText’} {attribute ‘conditionalshow’}

InOut:

| Scope  | Name                | Type                                            | Initial | Comment                                                                                                                                            | Inherited from |
| ------ | ------------------- | ----------------------------------------------- | ------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------- |
| Input  | `xExecute`          | `BOOL`                                          |         | <p>Rising edge: Starts defined operation<br><br><br><code>FALSE</code>: Resets the defined operation after ready condition was reached<br><br></p> | ETrigTl        |
| Input  | `udiTimeLimit`      | `UDINT`                                         |         | <p>Max. operating time per invocation<br>\[µs], 0: No operating time limit</p>                                                                     | ETrigTl        |
| Output | `xDone`             | `BOOL`                                          |         | `TRUE`: Ready condition reached                                                                                                                    | ETrigTl        |
| Output | `xBusy`             | `BOOL`                                          |         | `TRUE`: Operation is running                                                                                                                       | ETrigTl        |
| Output | `xError`            | `BOOL`                                          |         | `TRUE`: Error condition reached                                                                                                                    | ETrigTl        |
| Input  | `pJSONString`       | <p>POINTER TO ARRAY<br>\[1..32000] OF ASCII</p> |         | Pointer JSON string GPL.MAX\_JSON\_STRING                                                                                                          |                |
| Input  | `udiJSONStringSize` | `UDINT`                                         |         |                                                                                                                                                    |                |
| Output | `itfConnector`      | `IJSONConnector`                                | THIS^   | IF für Kom. Module FB’s                                                                                                                            |                |
| Output | `udiConnected`      | `UDINT`                                         |         | Anzahl der Module                                                                                                                                  |                |
| Output | `eErrorID`          | ERROR                                           |         |                                                                                                                                                    |                |
| Output | `udiErrorPosition`  | `UDINT`                                         |         | character position where the unexpected character was found                                                                                        |                |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.powerio.com/hub/codesys-hvac/powerio-json-library/funktionsbausteine/json_parse.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
