Classic XML and JSON packages
This page is for designers who are asked "Classic XML or JSON?" in the package wizard. Both formats hold the same package, element for element, and install the same way. The classic format stays the default.
The differences
| Classic | JSON | |
|---|---|---|
| Definition | package.xml | package.json |
| Documents | ezcontentclass/class-article.xml ... | the same names with .json |
| Other files (images, templates, extension files) | as they are | as they are, byte for byte |
| Checksums | MD5 of design files only | SHA-256 of every file |
| Archive name | <name>-<version>-<release>.ezpkg | <name>-<version>-<release>.json.ezpkg |
| Schema | the kernel's reader | share/package/schema/package-v1.json |
The format is detected from the content (which definition file is at the top), never from the file name.
When JSON helps a designer
- You review packages in pull requests: JSON diffs read better for many people and tools.
- You want every file covered by a checksum, so a changed or missing file is found before anything is installed.
- Your own scripts read or write packages.
Stay with classic when the people installing your package use older tools that only know package.xml.
Step by step: choose or convert
In the wizard's Package information step, choose Classic XML or JSON.
To download the other format later, use Download as JSON (or Download) on the package's page.
On the command line, convert an archive:
php ezpm.php convert mytheme_classes-1.0-1.ezpkg var/tmp/mytheme_classes-1.0-1.json.ezpkgphp ezpm.php help convertexplains the target (an archive or a new directory) and--to.Validate the result:
php ezpm.php validate var/tmp/mytheme_classes-1.0-1.json.ezpkg.
Related pages
- The JSON package format
- Validating a package
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.