Move sjson methods to utils.