Move JSON helper methods to Utilities class.