<Serialise unknown Any / Object using Moshi JsonWr...
# stackoverflow
u
Serialise unknown Any / Object using Moshi JsonWriter I'm converting the serialisation layer of an old socket library from Jackson to Moshi. The process is writing Wamp v1 (we're supporting a legacy server) message content to a byte array. In Jackson, I could call writeObject() on a token of an Object unknown at compile time, and trust it would be successfully serialised. The class in question would have the necessary Jackson annotations. In Moshi I can't find a way to do it. Is there away of of saying, just serialise this object, trust me, I...