HCOL-219 extracted out some of the JSON parsing