Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes in Swift-Codable.json for nil/not found key-value pairs. #140

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

pawan-joshi
Copy link

@pawan-joshi pawan-joshi commented Dec 24, 2019

Changed code in swift codable so that if any key value pair is not found / has different type, in json, it will make the property nil. instead of failing to create an object. also. its will print which object has not been found in json object, on console.

Ahmed-Ali and others added 30 commits November 15, 2017 22:22
Adding support for Swift 4 Codable
Changed icon / Fix UpsideDown text
In Swift-Struct-Codable format 'decodeIfPresent' cannot
produce value of type 'Anyobject'. So changing geberic-type
from 'AnyObject'to 'String' for null json values will
allow to compile the xcode project

Fixes Ahmed-Ali#105
…opt" to get String type value from JSONObject in constructor.
…com/ankushkushwaha/JSONExport into ankushkushwaha-fix_generic_type_swift_struct_codable
…ty0521-fss/JSONExport into ty0521-fss-feature/fix_java_gson_for_android
…o BrychanOdlum-master

# Conflicts:
#	JSONExport.xcodeproj/project.pbxproj
#	JSONExport/FilePreviewCell.swift
#	JSONExport/ViewController.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants