Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 // Create a JSON array (which initializes ArrayHandle)
If SRP_Json(ArrayHandle, "New", "ARRAYArray") then

   // This will be added as a String (even though the value contains only numbers)
   SRP_Json(ArrayHandle, "AddValue", "12345")

   // Now add an actual number value to the array
   SRP_Json(ArrayHandle, "AddValue", 67890, "NUMBERNumber")

   // Add a boolean
   SRP_Json(ArrayHandle, "AddValue", 1, "BOOLEANBoolean")

   // Remember to release entities you've created
   SRP_Json(ArrayHandle, "Release")

 end

...