[ardoJSON] BUG FOUND: OutSystems2JSON - extra item added to end of list

[ardoJSON] BUG FOUND: OutSystems2JSON - extra item added to end of list

  
Forge Component
(21)
Published on 30 Aug by Ricardo Silva
21 votes
Published on 30 Aug by Ricardo Silva
When you convert a structure record that contains a record list in to json, Outsystems2JSON will add an extra empty record to the list.

Example of structure

MetaData
-MetaDataList (record list of Meta)

Meta
-Key
-Value

OutSystems2JSON Output (two record items on the list)
{"MetaDataList":[{"Key":"foo","Value":"string"},{"Key":"bar","Value":"string"},{"Key":"","Value":""}]}

Expected Output 

{"MetaDataList":[{"Key":"foo","Value":"string"},{"Key":"bar","Value":"string"}]}
Hello Robert,

Actually the ardoJSON demo excercises writing record lists within a structure and does not have that issue (Actors and Keywords):

https://ardoric.outsystemscloud.com/ardoJSONDemo/P05_ComplexStructures.aspx

Can you please provide me with the module you're using that reproduces this behavior, so I can take a deeper look at the issue?

Best regards,
Ricardo Silva