# JSON Schema if payload is complex json

**URL:** <https://forum.confluent.io/t/json-schema-if-payload-is-complex-json/11203>\
**Category:** Kafka Connect\
**Created:** [7 August 2024 12:07 UTC](https://forum.confluent.io/t/json-schema-if-payload-is-complex-json/11203 "2024-08-07T12:07:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![atish.kulkarni11](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@atish.kulkarni11](https://forum.confluent.io/u/atish.kulkarni11)\
**Post date:** [7 August 2024 12:07 UTC](https://forum.confluent.io/t/json-schema-if-payload-is-complex-json/11203/1 "2024-08-07T12:07:44Z")

</div>

I have complex JSON in the payload I don’t know how to create JSON Schema for that JSON payload.  
I know I can make schemas.enable=false but I won’t be able to because the s3 sink connector needs Schema to create a parquet file in s3.  
below is sample JSON payload data-:  
values can be string, or double. keys are always a string.  
{ “key1”:“value1”,“key2”:“value2”…,“attributes”:{“aKey1”:“value1”…}}

any help is appreciated. thanks in advance.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [6 September 2024 12:08 UTC](https://forum.confluent.io/t/json-schema-if-payload-is-complex-json/11203/2 "2024-09-06T12:08:42Z")

</div>

Closed on 6 September 2024 12:08 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
