So I have a data structure like so...a dictionary...
fbIds = ["him", "her", "it", "that"]
then I have a database i'm adding a json structure to...
res = r.table("usa_nyc_bronx_merchants").insert({
"street_address": streetName.lower(),
"city": cityName.lower(),
"state": stateName.lower(),
"zipcode": zipcodeNumber.lower(),
"county": countyName.lower(),
"fbIds": [ADD DICTIONARY ITEMS TO THIS ARRAY]
.....
How do i add the items in that dictionary into that that json array...mind you all this code is already in a for loop.
Thanks!
fbIdsis already an array, so this seems like it should be simple... if would help if you included the for loop in the example above as well so we could get a better idea of what you are trying to accomplish.