Fixes typo. Adds loading from json.