Adopt to updated metadata-json module