5 Replies
      Latest reply on Jul 20, 2018 1:33 PM by KMT
      menashe Level 1 Level 1 (0 points)

        Here is an example.

         

        In the Xcode Doc when describing what error can be thrown by the JsonDecoder it says

        "If the data is not valid JSON, this method throws the dataCorrupted error. If a value within the JSON fails to decode, this method throws the corresponding error."

         

        But on the Web it shows

        "If the data is not valid JSON, this method throws the DecodingError.dataCorrupted(_:) error. If a value within the JSON fails to decode, this method throws the corresponding error."

         

        Giving the error enum as well.

         

        Thanks