Page 1 of 1

Remove the "webroutine" part of JSON content

Posted: Fri Feb 24, 2017 11:27 pm
by HMJust
I have finally gotten to generating JSON with a WAM. I have a question, is it possible to exclude the "webroutine" part of the JSON content?

Like in this:

Code: Select all

{
	"webroutine":{
		"context":{
			"action-request":"/CGI-BIN/lansaweb",
			"dec-separator":",",
			"images-path":"/IMAGES",
			"iso-lang":"",
			"language":"NAT",
			"partition":"TST",
			"service-name":"PP_REFRES_jsontest",
			"session-key":"",
			"session-key-method":"hidden",
			"session-key-name":"_SESSIONKEY",
			"technology-service":"LANSA:PPC_XHTML",
			"user-id":"WEBUSERTST",
			"webapplication":"PP_REFRES",
			"webapplication-title":"Refresh test",
			"webroutine":"jsontest",
			"webroutine-title":""
		},
		"fields":{
			"URL":{
				"type":{
					"t":"A",
					"l":255
				},
				"value":""
			}
		},
		"lists":{
			"LST":{
				"header":[
					{
						"name":"KODE",
						"type":{
							"t":"A",
							"l":1
						}
					},
					{
						"name":"NAVN",
						"type":{
							"t":"A",
							"l":30
						}
					}
				],
				"entries":[
					["A","ABE"],
					["B","BÆNKEBIDER"],
					["C","CENTIPEDE"],
					["D","DRÅBE"]
				]
			}
		}
	}
}