Add very basic object serialization to json.