Implement parsing of JSON data in TripBuilder

closes #4