Versions Compared

Key

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

...

Code Block
// Create a JSON array, add elements to it, and Stringify it fast
If SRP_Json(ArrayHandle, "New", "ARRAYArray") then
   SRP_Json(ArrayHandle, "AddValue", "12345")
   SRP_Json(ArrayHandle, "AddValue", 67890, "NUMBERNumber")
   SRP_Json(ArrayHandle, "AddValue", 1, "BOOLEANBoolean")
   JSON = SRP_Json(ArrayHandle, "Stringify", "FASTFast")
   SRP_Json(ArrayHandle, "Release")
end

// Create a JSON object, add members to it, and Stringify it pretty
If SRP_Json(ObjectHandle, "New", "OBJECTObject") then
   SRP_Json(ObjectHandle, "SetValue", "name", "John Doe")
   SRP_Json(ObjectHandle, "SetValue", "city", "Washington D.C.")
   JSON = SRP_Json(ObjectHandle, "Stringify", "STYLEDStyled")
   SRP_Json(ObjectHandle, "Release")
end

...