Bob_Jansen
(Bob Jansen)
1
I have exported two tiddlers fro my TW file so I can see the format of them in JSON format.
I have then turned them into the following:
[
{"created":"20230704044833128","text":"* Type: <$view field=\"object_type\" />\n* Date Start: <$view field=\"date_start\" />\n* Date End: <$view field=\"date_end\" />\n\n{{CS70}}","tags":"[[All Items]] [[Absurd Martin Esslin]] [[After Morandi]] [[Although Whiteley]] [[Andy Warhol]] [[Anthony Burgess]] [[Anthony Caro]] [[Art Foundation Payneham Road St]] [[Australia]] [[Australia Square]] [[Bach]] [[Bacon]] [[Baldessari]] [[Barbara Hall]] [[Beckett]] [[Bellini]] [[Blaxland Gallery]] [[Botticelli]] [[Braque]] [[Brecht]] [[Brett]] [[Camden Arts Festival First Prize]] [[Caravaggio]] [[Cascando]] [[Catholic Florence]] [[Central St]] [[Cezanne]] [[Chardin]] [[China]] [[Cleve]] [[Corot]] [[Courbet]] [[Currency Press]] [[David Smith]] [[David Sylvester]] [[Delacroix]] [[Derain]] [[Diego]] [[Dimboola]] [[Donatello]] [[Duchamp]] [[EAF Adelaide]] [[East Sydney Tech]] [[Eastern Europe]] [[Emile Bernard]] [[Ernst]] [[European]] [[Ewing Melbourne]] [[Fauvism]] [[Fay Bottrell Having]] [[Florence]] [[For Monk O'Neill]] [[France]] [[Francesca]] [[Frank Stella]] [[Freudian]] [[Fried]] [[George Paton Gallery Melbourne University Union JUNE JULY]] [[George Steiner PM]] [[Gericault]] [[Ghiberti]] [[Giacometti...very]] [[Gilot]] [[Giotto]] [[Giotto Judas]] [[Godot]] [[Goethe]] [[Gorky]] [[Goya]] [[Greenberg]] [[Gustave Courbet]] [[Gustave Moreau]] [[Hans Frank]] [[Hibberd]] [[Hilton Kramer]] [[Hopper]] [[ICA]] [[ICA Theatre Group]] [[In The Theatre]] [[Jack Hibberd]] [[Jackson Pollock]] [[Joyce]] [[Ken Unsworth Sculpture]] [[Kenneth Clark]] [[Manet]] [[Margaret Williams]] [[Matisse]] [[Matthew Arnold]] [[Max Kozloff]] [[Melba]] [[Merce Cunningham]] [[Michelangelo]] [[Michelet]] [[Mick Johnson]] [[Millet]] [[Milton Avery]] [[Miro]] [[Mondrian]] [[Monet]] [[Morandi]] [[Mozart]] [[Mr Wran]] [[New York]] [[Nice]] [[Orangerie]] [[Paris]] [[Pat Laird]] [[Paul Klee]] [[Paul McGillick]] [[Peters]] [[Phillip King]] [[Picasso]] [[Piero]] [[Pinter]] [[Pissarro]] [[Prado]] [[Prose]] [[Quattrocento]] [[RAS]] [[Rembrandt]] [[Rilke]] [[Rollin Schlicht]] [[Ron Robertson-Swann]] [[Rose Vickers]] [[Rubens]] [[Sach]] [[Samuel Beckett]] [[Seckett]] [[Seurat]] [[Siena]] [[Smith]] [[Solzhenitsyn]] [[Soutine]] [[Spender]] [[Steiner]] [[Stella]] [[Stephen Spender]] [[Titian]] [[Tom McCullough]] [[Tony McGillick]] [[Trotsky]] [[Ultimo]] [[Undercroft Gallery Perth]] [[Voltaire]] [[Warhol]] [[Warhol Marilyn Monroe]]","object_type":"<objecttype>","date_start":"","date_end":"","object_link":"CS70","modified":"20230804051741946","title":"ABC"}
{"created":"20230704044833126","text":"{{object_link}}","tags":"Links","title":"CS70","modified":"20230704044833126","object_type":"","date_end":"","date_start":"","object_link":"","_canonical_uri":"Images/CS70.pdf","type":"application/pdf"}
]
Importing this file gives an import error
If I do each tiddler as a separate file, they are accepted for import.
Anyone got any clues?
Thanks in advance
bobj
Your JSON array is missing the comma at the end of line 2 that separates the elements. This should work:
[
{"created":"20230704044833128","text":"* Type: <$view field=\"object_type\" />\n* Date Start: <$view field=\"date_start\" />\n* Date End: <$view field=\"date_end\" />\n\n{{CS70}}","tags":"[[All Items]] [[Absurd Martin Esslin]] [[After Morandi]] [[Although Whiteley]] [[Andy Warhol]] [[Anthony Burgess]] [[Anthony Caro]] [[Art Foundation Payneham Road St]] [[Australia]] [[Australia Square]] [[Bach]] [[Bacon]] [[Baldessari]] [[Barbara Hall]] [[Beckett]] [[Bellini]] [[Blaxland Gallery]] [[Botticelli]] [[Braque]] [[Brecht]] [[Brett]] [[Camden Arts Festival First Prize]] [[Caravaggio]] [[Cascando]] [[Catholic Florence]] [[Central St]] [[Cezanne]] [[Chardin]] [[China]] [[Cleve]] [[Corot]] [[Courbet]] [[Currency Press]] [[David Smith]] [[David Sylvester]] [[Delacroix]] [[Derain]] [[Diego]] [[Dimboola]] [[Donatello]] [[Duchamp]] [[EAF Adelaide]] [[East Sydney Tech]] [[Eastern Europe]] [[Emile Bernard]] [[Ernst]] [[European]] [[Ewing Melbourne]] [[Fauvism]] [[Fay Bottrell Having]] [[Florence]] [[For Monk O'Neill]] [[France]] [[Francesca]] [[Frank Stella]] [[Freudian]] [[Fried]] [[George Paton Gallery Melbourne University Union JUNE JULY]] [[George Steiner PM]] [[Gericault]] [[Ghiberti]] [[Giacometti...very]] [[Gilot]] [[Giotto]] [[Giotto Judas]] [[Godot]] [[Goethe]] [[Gorky]] [[Goya]] [[Greenberg]] [[Gustave Courbet]] [[Gustave Moreau]] [[Hans Frank]] [[Hibberd]] [[Hilton Kramer]] [[Hopper]] [[ICA]] [[ICA Theatre Group]] [[In The Theatre]] [[Jack Hibberd]] [[Jackson Pollock]] [[Joyce]] [[Ken Unsworth Sculpture]] [[Kenneth Clark]] [[Manet]] [[Margaret Williams]] [[Matisse]] [[Matthew Arnold]] [[Max Kozloff]] [[Melba]] [[Merce Cunningham]] [[Michelangelo]] [[Michelet]] [[Mick Johnson]] [[Millet]] [[Milton Avery]] [[Miro]] [[Mondrian]] [[Monet]] [[Morandi]] [[Mozart]] [[Mr Wran]] [[New York]] [[Nice]] [[Orangerie]] [[Paris]] [[Pat Laird]] [[Paul Klee]] [[Paul McGillick]] [[Peters]] [[Phillip King]] [[Picasso]] [[Piero]] [[Pinter]] [[Pissarro]] [[Prado]] [[Prose]] [[Quattrocento]] [[RAS]] [[Rembrandt]] [[Rilke]] [[Rollin Schlicht]] [[Ron Robertson-Swann]] [[Rose Vickers]] [[Rubens]] [[Sach]] [[Samuel Beckett]] [[Seckett]] [[Seurat]] [[Siena]] [[Smith]] [[Solzhenitsyn]] [[Soutine]] [[Spender]] [[Steiner]] [[Stella]] [[Stephen Spender]] [[Titian]] [[Tom McCullough]] [[Tony McGillick]] [[Trotsky]] [[Ultimo]] [[Undercroft Gallery Perth]] [[Voltaire]] [[Warhol]] [[Warhol Marilyn Monroe]]","object_type":"<objecttype>","date_start":"","date_end":"","object_link":"CS70","modified":"20230804051741946","ABC":""},
{"created":"20230704044833126","text":"{{object_link}}","tags":"Links","title":"CS70","modified":"20230704044833126","object_type":"","date_end":"","date_start":"","object_link":"","_canonical_uri":"Images/CS70.pdf","type":"application/pdf"}
]
1 Like
Bob_Jansen
(Bob Jansen)
3
Thats it, @Anthony_G_Cyphers , thanks very much
bobj
Greg_O
(Greg O)
4
For future reference, this tool can help you find errors like this:
1 Like
David_Cox
(David Cox)
5
In future, can you please mark the actual answer as the solution, rather than your own thanks-comment? It helps others when searching.
2 Likes
Bob_Jansen
(Bob Jansen)
6
Will do, @David_Cox. Wasn’t aware of the importance of the flag, just wanted to inform that a solution had been found/published.
bobj