Skip to main content
Akash Sood
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Sep 3, 2024 6:37 AM UTC
Solved

Data model: Json data type limitations

Hi Team,

I was looking for any limitations to length or any other limitations for Json data type for properties in the data model but was unable to find it in the documentation.

Do we have any limitations? If yes, we would want to know. We are planning to use the json data type in the model to store values for an ongoing project as part of our solution.

Thanks,

Akash

@Aditya Kotiyal 

Lead Product Manager
Sep 3, 2024 6:44 AM UTC

Hi,

From the API documentation for DM Containers:

 

The JSON fragments have to be valid JSON objects. If JSON arrays are to be stored, these must be wrapped in a JSON object. JSON values (such as string, number, boolean) should use their respective primitive form instead. The maximum allowed size for a JSON object is 40960 bytes

 

See https://api-docs.cognite.com/20230101/tag/Containers/operation/ApplyContainers#!path=items/properties/containerPropertyIdentifier*/type&t=request

4 replies

Lead Product Manager
Sep 3, 2024 6:44 AM UTC

Hi,

From the API documentation for DM Containers:

 

The JSON fragments have to be valid JSON objects. If JSON arrays are to be stored, these must be wrapped in a JSON object. JSON values (such as string, number, boolean) should use their respective primitive form instead. The maximum allowed size for a JSON object is 40960 bytes

 

See https://api-docs.cognite.com/20230101/tag/Containers/operation/ApplyContainers#!path=items/properties/containerPropertyIdentifier*/type&t=request

Jørgen Lund
Expert ⭐️⭐️⭐️⭐️
Product Manager
Sep 3, 2024 7:08 AM UTC

Hi @Akash Sood, please use the Developer Comminity group on Hub for questions not related to Data Workflows. You’ll get quicker and better responses there :-) 

Akash Sood
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Sep 3, 2024 7:32 AM UTC

Thanks @Thomas Sjølshagen 

Akash
Akash Sood
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Sep 3, 2024 7:33 AM UTC

@Jørgen Lund sure will use the correct group. I incorrectly asked on the wrong group

Akash