Remove the "webroutine" part of JSON content

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
User avatar
HMJust
Posts: 51
Joined: Wed May 11, 2016 7:23 pm
Contact:

Remove the "webroutine" part of JSON content

Post by HMJust » Fri Feb 24, 2017 11:27 pm

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"]
				]
			}
		}
	}
}
I don't know what I am doing, nor how I did it. If it works, luck was involved :geek:

Post Reply