Page History
...
Code Block |
---|
// Create a JSON array, add elements to it, and get the count If SRP_JSON(ArrayHandle, "NEW", "ARRAY") then SRP_JSON(ArrayHandle, "SETVALUE", 1, "12345") SRP_JSON(ArrayHandle, "SETVALUE", 10, 67890, "NUMBER") SRP_JSON(ArrayHandle, "SETVALUE", 5, 1, "BOOLEAN") SRP_JSON(ArrayHandle, "RELEASE") end // Create a JSON object, add members to it, and get the count If SRP_JSON(ObjectHandle, "NEW", "OBJECT") then SRP_JSON(ObjectHandle, "SETVALUE", "name", "John Doe") SRP_JSON(ObjectHandle, "SETVALUE", "city", "Washington D.C.") SRP_JSON(ObjectHandle, "SETVALUE", "zip", "12345", "NUMBER") SRP_JSON(ObjectHandle, "RELEASE") SRP_JSON(ObjectHandle, "RELEASE") end |