writeJSON Function

Top  Previous  Next



Net.writeJSON(value [, name [, members [, fNoEnd]]])


valueThe value to send to the web browser in JSON format.
nameOptional name string for value.
membersOptional string member name or array of member names to send if value is an object.
fNoEndOptional Boolean to indicate final closing brace should be omitted.


JavaScript Object Notation (JSON) is a standardized format for transferring data over a network.


If the value argument is an object and the optional members argument is not included or it is not a string or an array, all members are sent. If a member name is not found, that name is skipped. If members is an array and an element is not a string, that element is skipped.


JSON does not support undefined or NaN values. These values will be sent as null.



See Also