•  
     
    story #37218 output flat json with semicolon separated lists
Summary
Empty
output flat json with semicolon separated lists
Empty

Weak BI tools like Qlik doesn't properly support JSON as an input format. Given flat json format introduced in story #31087, the list fields are exposed as JSON array {"list_field": ["a", "b"]} but it's not possible for Qlik to natively understand this format and requires either complex QlikSense script or external scripts that, for some reasons, cannot be used. List values are easier to deal with in Qlik when they are strings with separators.

As we already have an output_format=[nested|flat] parameter, we introduce a new format flat_with_semicolon_string_array that will produce {"list_field": "a;b"} for list fields (other fields are not affected). The reason behind this choice are:

  • Add an output_format instead of having a new parameter avoid to have a validation logic like output_format=nested & separator=comma that would produce garbage
  • Usage of semicolon as separator because it's less likely to be a value in list fields.

Note: if a tracker have semicolon as part of field values, using flat_with_semicolon_string_array will produce an invalid result.

Empty
Empty
Status
Empty
Done
Development
  • [ ] Does it involves User Interface? 
  • [ ] Are there any mockups?
  • [ ] Are permissions checked?
  • [ ] Does it need Javascript development?
  • [ ] Does it need a forge upgrade bucket?
  • [ ] Does it need to execute things in system events?
  • [ ] Does it impact project creation (templates)?
  • [ ] Is it exploratory?
Empty
Details
#37218
Manuel Vacelet (vaceletm)
2024-04-03 15:17
2024-03-13 17:34
38443

References

Follow-ups

User avatar
  • I want to
    -output flat json with comma separated lists 
    +output flat json with semicolon separated lists