Skip to content

blitzagency/ParsedObject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#ParsedObject

A fork of SwiftyJSON by Ruoyu Fu and Pinglin Tang that allows SwiftyJSON to be used Swift <-> Objective-C. For examples, one might be embedding Python and need to send a Python dictionary to Swift.

Additionally, provides a slightly more generic name ParsedObject as it can be used for:

  • JSON
  • YAML
  • XML
  • etc

Basically, any serialized structure, not limited to JSON, but providing all of the convenience of SwiftyJSON.

The primary difference between SwiftyJSON.JSON and ParsedObject.ParsedObject is that ParsedObject is a now a @objc final class as opposed to a Swift Struct which is not allowed in Objective-C. Also, JSON.nullJSON has been renamed to ParsedObject.nullParsedObject and must be called with () as it is no longer a getter.

Usage

import ParsedObject

See SwiftyJSON's Usage and replace JSON() with ParsedObject().

About

A fork of SwiftyJSON (https://github.com/SwiftyJSON/SwiftyJSON) that allows for its use between Swift <-> ObjC

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published