fixed metadata json deserialization