I use SuperObject to work with Json / Delphi I have a function that takes a string and creates a type of a var super object, I need to check if it has an object (in my case it is "smtp"), and if it is not, I create . The problem is that smtp has children, for example smtp.address, and I need to create smtp and all its children, but my function does not work.
My code is:
if js.o['smtp'] = nil then
js.o['smtp'].S['address']:= 'justATest';
Can anybody help me?
I am using Delphi 2007 with SuperObject Unit
source
share