Mutiple objects into a single document


#1

Hi, i was wondering if its possible to store mutiple objects into a single document. For example, i have an anrraylist object called “Food” which is in JSON Format. Inside food, there is description about the food. Its possible to attach arraylist to a single document and retrieve it also?


#2

Sure, you can put arbitrary JSON into a document.


#3

Is there any examples code of this ?


#4

Just set the ArrayList as the value of a document property.

Pretty much all our sample apps will show using collections as properties, I think.