Question for Harm really...
Is this OK?
Code:
Procedure Test
Handle hoJson
Boolean bOK
Get Create (RefClass(cJsonObject)) to hoJson
Get ParseString of hoJson '{"obj": {"Foo": "Bar"}}' to bOK
Showln (MemberValue(Member(hoJson, "obj"), "Foo")) // shows "Bar" (unquoted)
Send Destroy of hoJson
End_Procedure
If so, what happens to the JSON object ("obj") returned by the (inner) call to Member(hoJson, "obj")?
Mike
PS - Showln (Name(Member(hoJson, "obj"))) shows "oJsonObject" (unquoted).
PPS - Showln (Name(Parent(Member(hoJson, "obj")))) shows "DESKTOP" (unquoted).