Versions Compared

Key

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

...

SRP_JsonX_Set sets the value of the element pointed to by Path. See Paths for more details. If the element doesn't exist, it is created. The difference between this routine and SRP_Jsonx is that this routine does not change the state of the document when called. It is better suited for editing existing documents whereas SRP_JsonX is better suited for building documents from scratch.

The Value parameter will be smartly interpreted by the routine unless a Hint is specified. OI numbers are converted into json numbers. You can also pass json as the value, and this routine will parse the json and set it as the element's new value.

...