[Feature]: Extend JSValueDecoder/JSValueDecoder with More Control over Dates, Data, and Numbers #7576
Closed
1 of 3 tasks
Labels
type: feature request
A new feature, enhancement, or improvement
Description
It'd be great if we had more control over how dates, data, and non-confirming floats were encoded and decoded.
Platforms
Request or proposed solution
JSONEncoder
/JSONDecoder
from Foundation allow you to configure the object with a strategy as to how to encode or decode dates, data, and non-conforming floating point numbers. This is most helpful when working with dates, as there are many ways to encode or decode dates from some structured data (it could be formatted as a UNIX timestamp in seconds or milliseconds, or be formatted as an ISO 8601 string).It'd be great if
JSValueDecoder
andJSValueEncoder
supported some or all of the various ways thatJSONDecoder
andJSONEncoder
can be configured to transform these various values.Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: