Add protocol that converts to JSONValue
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 271
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
Along the lines of #158, there should be a JSONValueConvertible protocol that provides more flexibility in converting types to JSONValue, JSONArray, and JSONObject. #159 initially implemented this protocol, but I backed it out because of concerns about potential ambiguity regarding which initializers would be called in various situations.
/cc @macdrevx
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the discussion in #158 and the backed-out implementation from #159, then review how JSONValue, JSONArray, and JSONObject conversions are currently initialized. The work is done when a JSONValueConvertible protocol provides the requested flexibility without ambiguity about which initializers are selected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100