Made more informative error and warning messages in from_json for materials
Typo