abstract out json parsing