add from_json method to Mash