TMS Software Blog: Extend TMS WEB Core with JS Libraries with Andrew: Epic JSON Primer (part 1)
Summary
Delphi is a strongly-typed language meaning that, at nearly every step, the data type assigned to a variable is known, usually in advance of its being used. In JavaScript (which is what TMS WEB Core applications are compiled into, ultimately) this is a bit of a non-issue as there is a garbage collector system that looks after this kind of thing. We dont usually need to write code to discover what the data types of the contents of the JSON are that were navigating, especially so if were the ones creating it. For small JSON Objects, this is likely not a big deal, though it is likely costly relative to some of the other operations if done repeatedly in short loops, for example. As previously, when deleting JSON Object elements, this is likely harmless on a small scale but if this is happening a lot in a short loop, you might very well want to consider another approach.