Removed debug, changed JSON processing to process the whole record rather than a particular attribute only