feat: Use toJSON for otherwise-empty objects
#47
+62
−4
toJSON for otherwise-empty objects
#47