How does one decode this JSON data?

This page summarizes the projects mentioned and recommended in the original post on /r/iOSProgramming

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • quicktype

    Generate types and converters from JSON, Schema, and GraphQL

  • Try pasting the raw result into https://app.quicktype.io and see what the structures look like.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • SwiftyJSON

    The better way to deal with JSON data in Swift.

  • I don’t think you are going to be able to use JSONDecoder to do what you are asking. I see the problem is that you need to create a struct that has all the property names (pokemon names) in it in order to use JSONDecoder (that’s a pain). You need to resort to “parsing” the JSON and constructing your own data model to satisfy your requirements. Something like this might help. https://github.com/SwiftyJSON/SwiftyJSON

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

  • Best practices for parsing dynamic/unstructured JSON?

    2 projects | /r/swift | 26 Aug 2022
  • Need help with json data formatting

    1 project | /r/swift | 9 Jan 2021
  • Show HN: A tool to Convert JSON schemas into TypeScript classes

    7 projects | news.ycombinator.com | 5 Oct 2023
  • Help with swift DecodingError.

    2 projects | /r/swift | 1 Jan 2022
  • dprint: Pluggable and configurable code formatting platform written in Rust

    1 project | news.ycombinator.com | 15 Jun 2024