Open Woollim opened 4 years ago
JSON Array
let json = ["array_value": [1, 2, 3, 4, 5]] // not working! 🙀 self.array = try map.value("array_value", using: CodableTransform<[Int]>())
single JSON value
let json = ["int_value": 1] // not working too! 🙀 self.value = try map.value("int_value", using: CodableTransform<Int>())
transformFromJSON
CodableTransform.swift
Single Value From JSON Object
Why
JSON Array
.single JSON value
using Key Path.What
transformFromJSON
function logic inCodableTransform.swift
JSON Array
,Single Value From JSON Object
parsing