Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 598 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 598 Bytes

STCoding

Advanced encoding and decoding utilities.

Features

AnyCodable

  • Type-erased encoding/decoding
  • Flexible data conversion
  • Protocol conformance

JSON

  • JSON parsing and serialization
  • Type-safe conversions
  • Error handling

Storage

  • Persistent storage abstractions
  • URL-encoded string handling
  • Set extensions

Usage

import STCoding

// Using AnyCodable
let value = AnyCodable(["key": "value"])

// JSON handling
let json = try JSON(data: jsonData)
let value = json["key"].string

// Storage
@StorageCodable("user_settings")
var settings: Settings