Improve support for ION/JSON processing in Pebble expressions #3715
Labels
area/backend
Needs backend code changes
enhancement
New feature or request
kind/customer-request
Requested by one or more customers
Milestone
Required todos:
json
filter tojsonEncode
for more clarity about what it does — it takes a data structure or object and converts it into a JSON string e.g.{{ [1, 2, 3] | jsonEncode }}
json()
function tojsonDecode()
to make it clear that it takes a JSON string and converts it into a data structure or object so the user can access further attributes using a dot notation e.g.'{{ jsonDecode(read(taskrun.items)) }}'
ionDecode()
function that will take an ION string (from reading an ION file) and convert it into a data structure or object e.g.'{{ ionDecode(read(taskrun.items)) }}'
; this function can only process a single rowImportant notes:
json()
will raise a warning in the UI but it will still workForEachItem
. However, theionDecode()
function should raise an error when trying to parse a multi-line string (i.e. ION file with multiple rows); this is important for performance reasonsThe text was updated successfully, but these errors were encountered: