move to using lightweight json process in ring middleware