Hey, quick question. So, I'm trying to use the pol...
# klaxon
b
Hey, quick question. So, I'm trying to use the polymorphic fields feature w/ Klaxon but I'm running into issues. Is it possible to use this feature when it comes to a json field that may be a map or a string? It seems like it only works in the event that the field is 100% a map and you can switch based on the map's argument names. Example... This seems like it can't be parsed using polymorphism.
Copy code
{
  "type": "text",
  "thing": "hello"
}
This can be parsed using polymorphism.
Copy code
{
  "type": "text",
  "thing": {
    "hello": "you"
  }
}