more details in trip json function