Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following functions for JSON Encoding described here are:

Table of Contents
maxLevel1

jsonEncodeList

This function encodes a list to a JSON formatted string.

Code Block
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.

Code Block
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.

Code Block
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.

Code Block
string jsonEncodeNonNullUdr ( DRUDR udr)

Parameter

Description

udr

The UDR to encode.

Returns

A JSON-formatted string.