Skip to content

Commit

Permalink
Update migrate-v4.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matcool authored Nov 13, 2024
1 parent 5913e66 commit 770e02c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tutorials/migrate-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static Result<std::shared_ptr<SettingV3>> parse(std::string const&, std::string
* Accessing missing properties with `Value::operator[]` will now return a null value instead of throwing an exception
* Serialization methods have been changed:
* `T from_json(matjson::Value const&)` -> `Result<T> fromJson(matjson::Value const&)`
* **Make sure to return a Result!** much of the code relies on `fromJson` returning a Result.
* `matjson::Value to_json(T const& value)` -> `matjson::Value toJson(T const& value)`
* `is_json` is no longer used, instead just return an error in `fromJson`
* `bool Value::is<T>()` removed
Expand Down

0 comments on commit 770e02c

Please sign in to comment.