adding json data to collections