There was an error while loading. Please reload this page.
1 parent 81448e4 commit fa8da0bCopy full SHA for fa8da0b
docs/src/components/screens/indexes/Unparse.js
@@ -23,7 +23,7 @@ export default function JsonToCSV() {
23
const { jsonToCSV } = usePapaParse();
24
25
const handleJsonToCSV = () => {
26
- const jsonData = '[
+ const jsonData = [
27
{
28
"Column 1": "1-1",
29
"Column 2": "1-2",
@@ -48,7 +48,7 @@ export default function JsonToCSV() {
48
"Column 3": 6,
49
"Column 4": 7
50
}
51
- ]';
+ ];
52
const results = jsonToCSV(jsonData);
53
console.log('---------------------------');
54
console.log('Results:', results);
0 commit comments