Skip to main content
Solved

Data model: Json data type limitations

  • September 3, 2024
  • 4 replies
  • 34 views

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

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 Sjølshagen

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

View original
Did this topic help you find an answer to your question?

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
  • Product Manager
  • 113 replies
  • 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+2
  • Author
  • MVP
  • 80 replies
  • September 3, 2024

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

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


Reply


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings