def mainproc(): result = XMLJSONConverter.xmlToJson(data) # result = XMLJSONConverter.jsonToXml(data) # print 'dd22' # print result return JythonDTO([result])
def submissionLast(context, main=None, add=None, filterinfo=None, session=None, data=None): formId = json.loads(data)['schema']['@formId'] formInstance = getFormInstance(context, formId) formInstance.setContext(session, main, add, None) cardData = formInstance.move('+', XMLJSONConverter.jsonToXml(data)) return cardData
def mainproc(): result = XMLJSONConverter.xmlToJson(data) return JythonDTO([result])