Base from_json on from_mapping