mapbox / mapbox/turf-swift

Add protocol that converts to JSONValue

Open
#163 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature jira-sync-complete op-ex
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.