Changed sample to use new JSONApplication class.