Date: Thu, 28 Mar 2024 10:58:36 -0700 (PDT) Message-ID: <267719994.281.1711648716812@wiki.srpcs.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_280_922868029.1711648716811" ------=_Part_280_922868029.1711648716811 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Returns a JSON Entity's type.
Syntax
Type =3D SRP_Json(= Handle, "Type")
The JSON entity's type.
Parameter | Description |
---|---|
Handle | Handle to a JSON Entity. Required.<= /strong> |
The Type service returns a JSON entity's type. The type will be one of f= ive values: "Array", "Boolean", "Number", "Object", or "String".
// Create a bunch = of entities SRP_Json(ObjectHandle, "New", "Object") SRP_Json(IntegerHandle, "New", "Number", "1234567890") SRP_Json(DecimalHandle, "New", "Number", "123456789.987654321") SRP_Json(StringHandle, "New", "String", "Hello, World!") SRP_Json(BooleanHandle, "New", "Boolean", 1) SRP_Json(ArrayHandle, "New", "Array") // Look at their types Type =3D SRP_Json(ObjectHandle, "Type") ; // "Object" Type =3D SRP_Json(IntegerHandle, "Type") ; // "Number" Type =3D SRP_Json(DecimalHandle, "Type") ; // "Number" Type =3D SRP_Json(StringHandle, "Type") ; // "String" Type =3D SRP_Json(BooleanHandle, "Type") ; // "Boolean" Type =3D SRP_Json(ArrayHandle, "Type") ; // "Array" // Remember to clean up SRP_Json(ArrayHandle, "Release") SRP_Json(BooleanHandle, "Release") SRP_Json(StringHandle, "Release") SRP_Json(DecimalHandle, "Release") SRP_Json(IntegerHandle, "Release") SRP_Json(ObjectHandle, "Release")