jsGetInfo

Returns information about the JSON extender.

 

Syntax:

jsGetInfo ( request-number, [array-handle] )

Parameters:

(i) request-number: information number (see below).

(i) array-handle: [optional] handle to JSON array (request 4 only).

Returns:

(s/i) information depends on request.  

 

This function returns miscellaneous information about the JSON extender.

 

Request-Number

The request-number parameter determines the information returned by the function.

 

Request-Number

Return Type*

Return Value

0

i

Extender version number.

1

i

Number of functions implemented by the extender.

2

i

Number of manifest constants implemented by the extender.

3

i

Number of open JSON container handles stored by the extender.

4

i

Number of elements in the JSON array in the option second parameter. Returns -1 when handle is to a JSON object instead.

Error #

s

Text associated with the an extender error number or an empty string (""), if the value is not a valid extender error number.

* i = number, s = text string

 

Array-handle

An optional parameter containing a JSON array handle that is only used with request-number 4.

     

See Also:

jsParse,  jsConClose