Added serialize directly to JsonObject