Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSK-Unarchiver was unable to parse objects with named keys in the $top array #184

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

danielpaulus
Copy link
Owner

I kind of assumed objects in there would always be "$0" "$1" "$2"... etc.
Seems like regular strings are also supported. So I am wrapping the extracted objects into a map[string]interface{} now and is the first object of []interface{} that the Unarchiver function returns. Not pretty, but works for now.

  • add testcase parsing a plist with that pattern
  • fix the issue by returning []interface{}{ map[string]interface{}{objects...} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant