Access/VBA Library

JSONdata

Returns a String representing a JSON element containing a name and value.

Syntax

JSONdata( name, Value )
Parameters
Name Type Description
name String Required. The name of the element.
Value Variant Required. The value of the element.
Return value

String : JSON name/value pair. Name will be quoted with '"'.

Code
Private Function JSONdata(ByVal name As String, Value) As String
        JSONdata = Quote(name, Chr(34)) & ":" & JSONvalue(Value)
End Function

JSONtag:JSON

See also

  • JSONvalue