Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82389

JSON object in GET response is each time different entity, can I use a generic JSON structure for it?

$
0
0

Hi guys,

 

I am consuming an API which responses each time with a different JSON structure; with different JSONobjects in it (43 entities);

for example I receive below "entities"  a JSON object: "color". A next response could have other objects of the 43 entities (for instances length/weight/etc).

 

I am wondering whether I can set up a unique JSON structure without an associationName for each of the 43 entities?

 

{"msg_id": "0XuRcewouzHcIroA6","_text": "Some text sentence of a descriptionline, from a description","entities": {"color": [
            {"confidence": 0.93332288255839,"value": "kleur",
            }
        ]
    }
}

 


Viewing all articles
Browse latest Browse all 82389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>