# 10. Nested JSON

![](/files/-MDZaq5-f5SLUir3f-tl)

![](/files/-MDZb1gBkVc0jF3Schq4)

![](/files/-MDZbD45CgJD4BvGvJP1)

![](/files/-MDZb8opKuWNvNynsxln)

1\) Create topic & insert the data :

![](/files/-MDZbYJNYUvhs3ncZ-H3)

2\) Create stream in KSQL :

![](/files/-MDZbhd_iRtU1UTYWe-I)

To extract the fields from STRUCT we have to use (->) operator in our query like below  :

![](/files/-MDZc7W2FdJflpwtcBoR)

![](/files/-MDZcCVa74nAJObe197T)


---

# 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://architectures.gitbook.io/project/apahce-kafka/ksql-on-ksqldb-for-stream-processing/ksql-intermediate/10.-nested-json.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.
