From 770e02c85366d73bc8a1888fcfaa0678f36e1380 Mon Sep 17 00:00:00 2001 From: mat <26722564+matcool@users.noreply.github.com> Date: Wed, 13 Nov 2024 16:30:43 -0300 Subject: [PATCH] Update migrate-v4.md --- tutorials/migrate-v4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/tutorials/migrate-v4.md b/tutorials/migrate-v4.md index 0c988d1..77d0e85 100644 --- a/tutorials/migrate-v4.md +++ b/tutorials/migrate-v4.md @@ -77,6 +77,7 @@ static Result> 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 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()` removed