Page tree

Versions Compared

Key

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

...

Before 3.5.0 version, ConfiDoc was able to output the values only in the format like this ["sash"] (when accessing it through result.lastModificationUser)

But now, the value is recognized as a single value array and teh text value get's nicely extracted from the JSON, producing the sash as a result

...

To access the value 4.75 you will need to write the following expression into a ConfiDoc field name parameter

Code Block
values[1][2]


How to translate this? We ask ConfiDoc to get the row with index 1 (arrays indeces start with 0) and tell to pick the 3rd element (again, the index starts from 0, and theerfore the index value is 2 here, for element number 3)

To give another example - to access "Count" value you will need to write values[0][1]


Accessing elements by attribute values

...