Advertising sustains the DA. Ads are hidden for members. Join today
Drupal APIs
- Access Policy API
- AJAX API
- Authentication API
- Batch API
- Block API
- Cache API
- (deprecated) CKEditor 4 API
- CKEditor 5 API
- Configuration API
- Database API
- Entity API
- Filter API
- Form API
- JavaScript API
- Layout API
- Logging API
- Menu API
- Middleware API
- Migrate API
- Plugin API
- RESTful Web Services API
- Render API
- Responses
- Routing system
- Runtime Assertions
- Serialization API
- Services and dependency injection
- State API
- Text Editor API
- Tour API
- Translation API
- Typed Data API
- Update API
- Command-Line Interface (CLI) API
- HTMX
- Icon API
- Token API
Serialization API
Serialization API in Drupal 8.
Serialization API overview
The Serialization API is new in Drupal 8. It is largely based on the Symfony Serializer component, so their documentation is also relevant.
How the Serializer works
The Serialization API depends on Symfony's Serializer component.
Adding new formats
Core supports JSON and XML, as well as HAL-JSON. It is easy to add support for other formats.
Changing the way Serializer handles entities
Core supports serialization for content entities, their fields, and field items. It is easy to add support for other classes, and also to