Fixes to calling JSON service