BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

StructFindKey returns two findings on the same node if top level key is array

Description

The following code:

myStruct = { animals: [ { type: "dog", age: 12 }, { type: "cat", age: 3 }, { type: "pig", age: 5 } ] }; result = StructFindKey( myStruct, "animals", "all" );

Returns two results when only one should be returned. The correct number of results is returned if the top level item is not an array.

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created January 20, 2025 at 5:16 PM
Updated January 20, 2025 at 5:39 PM
Resolved January 20, 2025 at 5:39 PM

Flag notifications