Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

The functions described in this section are used to to encode lists, maps, or UDRs to JSON formatted strings.

The following functions for JSON Encoding described here are:

jsonEncodeList

This function encodes a list to a JSON formatted string.

string jsonEncodeList ( list<any>list)

Parameter

Description

list

The list to encode

Returns

A JSON formatted string

jsonEncodeMap

This function encodes a map to a JSON formatted string.

string jsonEncodeMap ( map<string,any> map)

Parameter

Description

map

The map to encode

Returns

A JSON-formatted string

jsonEncodeUdr

This function encodes a UDR to a JSON formatted string.

string jsonEncodeUdr ( DRUDR udr)

Parameter

Description

udr

The UDR to encode.

Returns

A JSON-formatted string.

jsonEncodeNullUdr

This function encodes a UDR to a JSON formatted string and omitting any fields that contain the null value.

string jsonEncodeNonNullUdr ( DRUDR udr)

Parameter

Description

udr

The UDR to encode.

Returns

A JSON-formatted string.

  • No labels