[ardoJSON] JSON2RecordList appends?

Forge Component
Published on 2018-10-24 by Ricardo Silva
29 votes
Published on 2018-10-24 by Ricardo Silva

Am I right in assuming that JSON2RecordList appends to the passed record list, and doesn't clear it?

You don't need to assume, it's something that's easily tested.

But you are correct. JSON2RecordList does not clear the list it receives and just appends to it.

But there are better ways to deserialize JSON nowadays. You can use the builtin functionality for that.

Hi Ricardo,

Well, it was the behaviour I noticed, just checking whether that was correct. You are talking about built-in functionality, I hadn't realized there was. What functionality are you referring to here?

the JSON_Serialize and JSON_Deserialize builtin actions. They've been there the whole of OutSystems 10's life ^^

Whaddayaknow... Somehow completely missed them... Thanks!