Adding json to object