-added code to output json via cas consumer