Skip to content

Commit

Permalink
mark JSON as internal
Browse files Browse the repository at this point in the history
  • Loading branch information
leavez committed Jun 14, 2018
1 parent b5d021f commit 2ab4a4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/Mappable/JSON.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import Foundation

/// a JSON implementation of Mapper
public struct JSON {
struct JSON {

private let value: Any

Expand All @@ -19,22 +19,22 @@ public struct JSON {

extension JSON: CustomStringConvertible {

public var description: String {
var description: String {
return "JSON: \(value)"
}
}

extension JSON: Mapper {

public func createMapper(with data: Any) -> JSON {
func createMapper(with data: Any) -> JSON {
return JSON(data)
}

public func getRootValue() -> Any {
func getRootValue() -> Any {
return value
}

public func getValue(keyPath: String, keyPathIsNested: Bool) -> Any? {
func getValue(keyPath: String, keyPathIsNested: Bool) -> Any? {

let delimiter: Character = "."

Expand Down

0 comments on commit 2ab4a4b

Please sign in to comment.