-
Notifications
You must be signed in to change notification settings - Fork 4
[question] How to serialize this mix? #13
Comments
yeah Map[String,Any] I don't know how to do yet. That would require runtime reflection I think. |
Not sure it is for the next issue, so asking here :) I can clarify the intention. There are (far to be rare) use cases a resultant map is dynamic, i.e. a list of |
o they exist: https://github.com/json4s/muster/blob/master/core/src/main/scala/muster/ast/ast.scala#L398-L400 But they are kind of deferred to each implementation so that for arrays for example it doesn't read the entire array but just the element it's trying to deserialize at that moment. For jawn their implementation is this: |
Yes, I have found those abstract classes. But they are abstract, and those jawn implementations your are pointing to are private. How to become happy? :) |
Your use case is dynamic json generation right? |
Yes, it is one of the use cases. |
Heh... Still hasn't found a way muster can serialize an |
O I'm terribly sorry I haven't implemented an integration with the jawn ast integration. there is integration with the json4s ast, play-json ast and argonaut ast. |
Aha! Thanks for the clarification! Now I see I have tried to look for a black cat in a black room while there isn't a cat at all there :) |
Hi! I'd want to serialize this mess:
I have tried
but have got:
The text was updated successfully, but these errors were encountered: