Skip to main content
Question

List of Json object.

  • November 3, 2025
  • 3 replies
  • 36 views

Forum|alt.badge.img

Hi Team, we have data in format like list of externalIds and space as key and value.  Like list of Json object in data model. 
something like 
[{externalId:well,space:slb},{externalId:well1,space:slb2}]
So can we keep a field in model like 
violatedEntities: [JsonObject]
Is it possible to parse all the externalIds and store it like this?
Thank you.

3 replies

Mithila Jayalath
Seasoned Practitioner
Forum|alt.badge.img+8

@Arild Eide will you be able to help out here?


Arild  Eide
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • November 5, 2025

Hi ​@Shweta 

A property of type json can hold a valid json object or a list of json objects that cannot exceed 40kb in size. The size limit is applied across all elements when the json property is a list. Do note that the client will need to download the json content in full before accessing individual elements.

It is certainly possible to store an array of instance ids as you propose but I would think a better approach would be to represent that an entity has been violated using a property directly on the instance. This would allow you to mutate the instance itself based on violation status and also to filter by this property. 

 

Regards,

 

Arild Eide 


Forum|alt.badge.img
  • Author
  • Committed
  • November 11, 2025

Hi ​@Arild Eide 
Thank you for the answer, and yes, I will consider your suggestion too. But the point is we don't need to apply any filter on those, it’s just we will pick latest by one more field in the view.

Thank you.

Shweta