Versions Compared

Key

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

...

The example below uses the folio_users.custom_fields table, which has an embedded array elements (called "values" containg three fields: "id","value" and "default") nested within a hierarchy of . "Values" is embedded within two preceding text objects: 

  • "selectField" (text object) – topmost level
  • "options" (text object) – middle level
  • "values" (array object) – bottom level. This array object contains the fields we need: "id" and "value"

Here is what the custom_fields json data array looks like:



The code to do that is:

...