json-2-csv icon indicating copy to clipboard operation
json-2-csv copied to clipboard

Disable creating nested JSON objects from CSV when headers have dots

Open typeofweb opened this issue 4 months ago • 0 comments

I have a CSV file from Shopify that exports custom fields in the following manner:

og (product.metafields.custom.og),Google: Custom Product (product.metafields.mm-google-shopping.custom_product)

Unfortunately those are converted into nested objects which is completely unexpected:

{
  "og (product": {
    "metafields": {
      "custom": {
        "og)": ""
      }
    }
  }
}

Is there a way to keep those headers as they are instead of nesting?

typeofweb avatar Oct 14 '25 07:10 typeofweb