update JSON reply format to match new API format