On Thu, 16 Jun 2016, Graeme Geldenhuys wrote:
Hi, Is there a method (just so you know GetPath() wasn't it) that returns the "path" or hierarchy of a TJSONObject instance? eg: I can do: obj := lRootData.Find('Report.Pages.0.Watermark.Font'); But how do I do the reverse. Lets say I have a TJSONObject instance in the obj variable. How do I query the path to that object in the whole JSON hierarchy - the 'Report.Pages.0.Wartermark.Font' text listed above?
You can't. There is no reference to the owner. Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal