[Pas2js] Nested objects

Michael Van Canneyt michael at freepascal.org
Thu Dec 10 19:07:44 CET 2020




On Thu, 10 Dec 2020, heliosroots wrote:

> I did not understand the question? was inspired by fpjson findpath ... please
> if you can test it. you can use it for example!
>
> GetNestedValue (Any, 'Path. [3]. [0]', Def);
> GetNestedValue (Any, '[0] .Path.Path. [2]', Def);

Please check the example on:

https://tools.ietf.org/html/rfc6901#page-6

But it uses a different syntax...

Maybe an array is also considered an object, and it will work as you wrote
it. I will test :-)

Michael.


More information about the Pas2js mailing list