From: Jean Privat Date: Thu, 1 Sep 2016 01:53:15 +0000 (-0400) Subject: Merge: json::serialization: don't raise errors on missing attributes with default... X-Git-Url: http://nitlanguage.org Merge: json::serialization: don't raise errors on missing attributes with default values This PR fits in the ongoing work to improve deserializing from plain JSON objects. The JSON deserialization engine no longer raises errors on missing attributes when a default value is available. Attributes may be missing because the JSON object come from a third-party API or when loading serialized data from a previous version of the software. Default values include simple default values (`var x = 4`), lazy attributes and nullable types (which are set to `null`). This does not yet include `optional` attributes, more work would be needed. The test/example can be activated when #2296 is fixed. Pull-Request: #2302 Reviewed-by: Jean Privat Reviewed-by: Alexandre Terrasa --- 9b56120ddb7796a90245b96b73ffee236d112e5a