3.13.1 JSON Convenience Wrapper

LANSA ships a JavaScript library that provides you with an easy way to get to the fields and lists returned in JSON responses or to post data in JSON. You also use the list methods to get to JSON lists returned in a web page. To use this library, add external resources XWJDCJS1 (JavaScript file json2.js) and XWJ003 (JavaScript file std_json.js) to your webroutine.

Also see

Requesting a Webroutine

Getting Fields

Processing Lists

Getting Messages

Context Data

Building a JSON Request

Adding Fields to the JSON Request

Adding a List to the JSON Request

Defining JSON Request List Headers

Adding Entries to the JSON Request List

Posting the Json Request