JSON field do not survive import & export.
See original GitHub issueDescribe the bug JSON fields do not survive import/export.
To Reproduce Steps to reproduce the behavior:
- Have a model with a JSON field containing some JSON e.g.
{"a":"b"}
- Export using format CSV, JSON or TSV.
- Open up new environment.
- Import previous file
- the json field contains the JSON in quotations and single quotes
"{'a':'b'}"
Versions (please complete the following information):
- Django Import Export: 2.4.0
- Python 3.9
- Django 3.1.2
Expected behavior The field should have the same content as before.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
DJango - Export Json Field in Model to CSV along with other ...
I solved the issue, and here is how I did it for anyone who might need it. First import the following, from django.db...
Read more >Advanced field editing using JSON | Cloud automation Cloud
The More options field on automation actions in Jira Cloud allow you to specify a valid JSON object reference and edit issue fields....
Read more >How to import/export JSON data using SQL Server 2016
This article will explain how to import JSON data into SQL Server 2016 table and how to export data from SQL Server 2016...
Read more >RSS setting not exported and imported on new sites
When I have done my settings and export the settings.ini file and build a new site and import that file again, it does...
Read more >Velo Tutorial: Importing and Exporting Collection Data with Code
The API will not check the data you are importing to ensure it matches the Field Type of the field you are importing...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aureliendebord
I call this method when I run into a type error when using this field post-import.
Hi @takkaria
Many thanks for the update on this issue. Based on the fact that neither of us can reproduce this in 2.6.1 I will close the issue.