adapter.json: Use error handling pattern from xml_deserialization for json_deserialization
In the aas.adapter.xml.xml_deserialization
we introduced an elegant error handling pattern to reduce code dupliction, consisting of the _failsafe_construct()
and _failsafe_construct_multiple()
, which wrap a constructor function to handle its raised Exceptions. We should apply the same pattern to the JSON deserialization.