modify build_from_json