Skip to content
This repository was archived by the owner on Sep 28, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/main/golo/json.golo
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,18 @@ local function toDynamicObjectFromJSONObject = |obj| {
dyno: get(level): append(subDyno)
}
})
} else if isJSONArray(item) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure, but it seems that item is never declared

let lst = list[]
item: each(|val| {
if isJSONObject(val) is false and isJSONArray(val) is false {
lst: add(val)
} else if isJSONObject(val) {
let subDyno = DynamicObject()
parseMembers(val, subDyno)
lst: add(subDyno)
}
})
dyno: get(level): append(lst)
}
return dyno
}
Expand Down