Skip to main content
Answer

Data model: Json data type limitations

  • September 3, 2024
  • 4 replies
  • 53 views

Akash Sood
MVP
Forum|alt.badge.img+3

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 

Best answer by Thomas Sjolshagen

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

Forum|alt.badge.img

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
Seasoned Practitioner
Forum|alt.badge.img
  • Product Manager
  • September 3, 2024

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
MVP
Forum|alt.badge.img+3
  • Author
  • MVP
  • September 3, 2024

Thanks @Thomas Sjølshagen 


Akash Sood
MVP
Forum|alt.badge.img+3
  • Author
  • MVP
  • September 3, 2024

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