Add hash to metadata from JSON