mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 16:09:21 +08:00
Big start into ClassAdapter.
This borrows from Gson's UnsafeAllocator. I didn't actually borrow much from Gson's reflective type adapter, but I'll need to review that in follow up to see if I forgot anything that Gson covers. Most interesting design decision here is that fields are serialized in alphabetical order. Also we're pretty nice around detecting field collisiosn and failing early.
This commit is contained in:
Reference in New Issue
Block a user