How to describe an array (from a JSON) that contains either string or array of string?

This page summarizes the projects mentioned and recommended in the original post on reddit.com/r/swift

Our great sponsors
  • Zigi - Delete the most useless function ever: context switching.
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • Scout APM - Truly a developer’s best friend
  • Sonar - Write Clean JavaScript Code. Always.
  • quicktype

    Generate types and converters from JSON, Schema, and GraphQL

    I would paste the JSON into https://app.quicktype.io and see what it returns. That's a weird bit of JSON because it's a struct with one field that points to an irregular array that can contain either strings or arrays.

  • Zigi

    Delete the most useless function ever: context switching.. Zigi monitors Jira and GitHub updates, pings you when PRs need approval and lets you take fast actions - all directly from Slack! Plus it reduces cycle time by up to 75%.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts