Improve material JSON export.