Skip to content

decode to Data.Map String MyRecordType #1

@kevinbarabash

Description

@kevinbarabash

I read through https://qiita.com/kimagure/items/00f97c7fc6cef178fa3c and was able to decode some simple JSON data. I have a JSON file that contains a bunch or records inside an object whose keys are the ids of each record. Is there any way to load this using generics? If not, would it make sense to restructure the JSON file to be an array where each record contains an id field? Can foreign generics handle decoding arrays?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions