Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

Array of mixed types #160

Closed
markovaljaots opened this issue May 10, 2016 · 1 comment
Closed

Array of mixed types #160

markovaljaots opened this issue May 10, 2016 · 1 comment
Labels

Comments

@markovaljaots
Copy link

Is it possible to parse arrays that contain mixed types?

For example in my JSON I have this array:

"actiontasklist": [
  { "actiontype": "play_sound", "id": "VO1" },
  "INTERACTION_BLOCK"
]

What would be the best solution to parse this array or what would be my options?

@hkellaway
Copy link
Owner

you'll want to get creative with your own transformation (https://github.com/hkellaway/Gloss#custom-transformations). #113 is an example.

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

No branches or pull requests

2 participants