To me, this looks more like Dict String PlanetInfo since you're only going to have 1 instance for each planet. List Planet would allow multiples of any planet.
Next, your PlanetInfo looks close, but I think you'd be better suited to have the "xyz" key converted to something like
I had overlooked dicts, and there are a couple of other things I'm not clear on, so elm/core is on today's reading list. :D
Your input seems like a very good starting point for today. Yesterday was still a step forward, so I'm happy with my progress. Again, thanks for your help!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Sorry JSON is causing you such troubles. Maybe a few pointers to help guide you towards an answer when you come back to this day, assuming you do.
Some suggestions on changes to your types. Looking at your data
To me, this looks more like
Dict String PlanetInfo
since you're only going to have 1 instance for each planet.List Planet
would allow multiples of any planet.Next, your
PlanetInfo
looks close, but I think you'd be better suited to have the"xyz"
key converted to something likeThis brings your types to something like
I hope this gives you a much better starting point. Happy to help more if you're interested.
And happy new year!
Thank you so much, and happy new year!
I had overlooked
dict
s, and there are a couple of other things I'm not clear on, so elm/core is on today's reading list. :DYour input seems like a very good starting point for today. Yesterday was still a step forward, so I'm happy with my progress. Again, thanks for your help!