[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-19 Thread John Mayes
*Thank you all! *So glad I found this Group. I was able to import after quoting the numbers. @Soren Bjornstad - I searched for duplicates on a couple of them and they did not exist before the import, so I'm not sure what to make of your observation. Looking forward to utilizing your Grok

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread Soren Bjornstad
By the way, when I said that the example "imported correctly" for me, it indeed did not include some of the fields...for some reason I foolishly decided not to mention that when I imported it even though I noticed. I am not however seeing the message jkm was where $:/Import said there were no

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread TW Tones
I can totally recommend Joshua's JSON mangler in cases likele this and csv. On Thursday, 19 August 2021 at 04:22:26 UTC+10 jkm...@gmail.com wrote: > New member here. Windows, TiddlyDesktop v0.0.14, TW 5.1.23 > > I'm able to import tiddlers from json with the title and text fields. But >

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread Joshua Fontany
The "Deserializer" for "application/json" files that are Objects (with minimum "title" field), or Arrays of such objects, does include a check to see if the value is a string: ``` if(typeof incomingFields[f] === "string") { fields[f] = incomingFields[f]; } ``` This is stripping out your other

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread springer
JKM, After putting quotes around your numbers (and fixing where a So-called "smart" quote had crept in during my editing, sorry about my earlier post, now deleted), both records import fine for me. I have found that raw numbers for field content (as in your kbarating field) will not work;

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread springer
JKM, This is not much of an answer, except two comments: (1) I regularly import JSON strings with fields, needing no further configuration. (The import tiddler won't show the additional fields, but they'll be part of the tiddler after import, as you can see once you open in edit mode.) (2) I

[tw5] Re: Import tiddlers w/ json including custom fields

2021-08-18 Thread Soren Bjornstad
Your second example imports as expected for me. Is it possible tiddlers with the titles in your JSON already exist in the wiki? I believe there is a bug in 5.1.23 where it doesn't explain that to you in the import dialog and just silently skips them. On Wednesday, August 18, 2021 at 1:22:26 PM