Skip to content

Commit

Permalink
Merge pull request PerfectlySoft#216 from scorovit/patch-1
Browse files Browse the repository at this point in the history
modifiable interface for child object

Former-commit-id: cc0d291
Former-commit-id: 122ebed3c4aba40367559626af8c480a50000777
Former-commit-id: 7aa6b01c41fcf903fbdbe93167703e33d95f532c
Former-commit-id: ba70d06f33613da16c51e0a031ee2e190ceb65be
  • Loading branch information
iamjono authored Aug 25, 2016
2 parents 2d32c17 + bbd1b31 commit 627fa23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/PerfectLib/JSONConvertible.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ public protocol JSONConvertible {
/// Base for a custom object which can be converted to and from JSON.
open class JSONConvertibleObject: JSONConvertible {
/// Default initializer.
public init() {}
open init() {}
/// Get the JSON keys/value.
public func setJSONValues(_ values:[String:Any]) {}
open func setJSONValues(_ values:[String:Any]) {}
/// Set the object properties based on the JSON keys/values.
public func getJSONValues() -> [String:Any] { return [String:Any]() }
open func getJSONValues() -> [String:Any] { return [String:Any]() }
/// Encode the object into JSON text
public func jsonEncodedString() throws -> String {
return try self.getJSONValues().jsonEncodedString()
Expand Down

0 comments on commit 627fa23

Please sign in to comment.