Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Spread JSON objects in CSV outputs to make them more readable #65

@nirmalhk7

Description

@nirmalhk7

If I have following data in my Strapi database:

Name School
Nirmal {name: xyz, area:abc}

This plugin would export it exactly like above: keeping the JSON field in a stringified form.. I wish to understand why it can't be like this instead:

Name School.name School.area
Nirmal xyz abc

At this line you can add a check whether the element variable is an array or an object. In case if it is an object, you can create extra columns and save the data appropriately.

I have a hunch you knew/ tried to do something like this, so I'm wondering is there anything I'm missing in my understanding of Strapi/ this plugin to figure this out. I'd love to hear some clarification on this.

Awesome job, thanks ✌️

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