[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: JSON - Why does not this work?

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
There's code that does this in this class - github.com/.../ConfigFileLoggerBuilder.cls ; the LoadConfig method at github.com/.../ConfigFileLoggerBuilder.cls specifically. For objects, you call the GetNames() method on the JSON object to get an array of characters. Use a LONGCHAR for this (not CHARACTER) because there's a bug when you hav ea lot of properties. They you DO loop = 1 to extent(names). You then can call object:GetType(names[loop]) to get the type and act accordingly. For arrays, you do loop = 1 to array:Length. You then can call object:GetType(loop) to get the type and act accordingly.

Continue reading...
 
Status
Not open for further replies.
Back
Top