Skip to content

Commit 770e02c

Browse files
authored
Update migrate-v4.md
1 parent 5913e66 commit 770e02c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tutorials/migrate-v4.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ static Result<std::shared_ptr<SettingV3>> parse(std::string const&, std::string
7777
* Accessing missing properties with `Value::operator[]` will now return a null value instead of throwing an exception
7878
* Serialization methods have been changed:
7979
* `T from_json(matjson::Value const&)` -> `Result<T> fromJson(matjson::Value const&)`
80+
* **Make sure to return a Result!** much of the code relies on `fromJson` returning a Result.
8081
* `matjson::Value to_json(T const& value)` -> `matjson::Value toJson(T const& value)`
8182
* `is_json` is no longer used, instead just return an error in `fromJson`
8283
* `bool Value::is<T>()` removed

0 commit comments

Comments
 (0)