[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Question about parsing JSON

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

Peter Judge

Guest
For arrays, use DO I = 1 to iArrayLength: You can check what the (JSON) type of each array extent is arrayVar:GEtType(i) which returns an Progress.Json.ObjectModel.JsonDataType . You can use that to get the data for the extent. If it’s a JSON object, and you know the property names, use objectVar:GetCharacter( ) You can also check the type of the object’s properties with objectVar:GetType( ) Alternatively, objectVar:GetNames() returns a character array of the names. You can loop over those to get the types/values of the properties in a JSON object.

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