Swiftpack.co - tesseract-one/Serializable.swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by tesseract-one.
tesseract-one/Serializable.swift 0.3.1
Dynamic Serializable Value for Swift Codable
⭐️ 1
🕓 3 weeks ago
iOS macOS watchOS tvOS
.package(url: "https://github.com/tesseract-one/Serializable.swift.git", from: "0.3.1")


🐧 linux: ready GitHub license Build Status GitHub release CocoaPods version Platform OS X | iOS | tvOS | watchOS | Linux

Dynamic value for Swift Codable


This library allows encoding and decoding of dynamic data structures via Swift Codable.

Supported types

  • Dictionary
  • Array
  • Bool
  • Float(Double)
  • Int
  • String
  • null

Additional types

Date and Data can be converted in runtime from the String type.

Getting started


Package Manager

Add the following dependency to your Package.swift:

.package(url: "https://github.com/tesseract-one/Serializable.swift.git", from: "0.3.0")

Run swift build and build your app.


Add the following to your Podfile:

pod 'Serializable.swift' '~> 0.3'

Then run pod install.


  1. Download and drop Sources/Serializable folder in your project.
  2. Congratulations!


JSON parsing

import Foundation
import Serializable

let json = """
  "message": "Hello, World!"
""".data(using: .utf8)!

let value = try! JSONDecoder().decode(AnyValue.self, from: json)

print("Message:", value["message"]!.string!)



Serializable.swift is available under the Apache 2.0 license. See the LICENSE file for more information.


Stars: 1
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Subscripts. Fixes
3 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics