You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought the whole point of this library was that one DIDN'T need to use Encodable and Decodable? I am trying desperately to solve the problem of precision in floating point numbers and its the Encodable/Decodable requirement is the cause of the problem.
How would I encode a struct like this (with some values of course)
struct TestIt
{
var title: String
var value: Float
}
to a JSON String that can be sent on the wire without specifying conformance to Encodable?