Support dumping to JSON compatible datatypes