Added extra logging to dump out incoming and outgoing JSON