Search found 590 matches

by phaworth
Sat Oct 17, 2015 5:43 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Bob,
Looks like it works fine now on the dictionary, thanks a lot for the fixes. It took around 25 seconds on my latest model iMac in LC8/OSX 10.10 but it is a huge file.
by phaworth
Fri Oct 16, 2015 11:49 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Hi Bob, just been looking at this. I think you might be using a different file than me. Mine ends at line 96361 and I can't find another instance of a var declaration after the first line. Also, the var dictionary data in your snippet is on line 1 of my file. I'm getting the file mentioned by bn in ...
by phaworth
Fri Oct 16, 2015 11:21 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Thanks Bob. I did remove an initial var statement in line 1 of the file, didn't realize there was another one. Let me try removing all the var statements before passing it off to jsonToArray. Yes, it woul definitly help if there was more in the way of an error message, even if just a line number whe...
by phaworth
Fri Oct 16, 2015 5:12 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Hi Bob, I copy/pasted the new code into my app. I ran jsonToArray against the dictionary data with false for the unicode parameter and true for the skip validation. It took anywhere from 10 to 25 seconds seconds but unfortunately, the results weren't correct. The array had one subkey in it, "docs", ...
by phaworth
Fri Oct 16, 2015 2:57 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Thanks Mark. Worked great even after I took my clothes off!
by phaworth
Fri Oct 16, 2015 1:36 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Bob,
You'll have to forgive my complete ignorance of gitHub but I now realize I don't know how to download a specific version, please enlighten me
Pete
by phaworth
Fri Oct 16, 2015 1:16 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Thanks Bob, I will give that a whirl and report back. Don't know if there's any unicode in the file or not, probably not for the English version of it, not sure if there will be translations of it in the future.
Pete
by phaworth
Fri Oct 16, 2015 1:09 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

I wondered exactly the same thing Richard! I doubt anyone outside of Livecode would need or want to access the dictionary info. The only thing I can think is that it's for consistency with the way the widget documentation is recorded, so that the dictionary only needs one method to display it. Then ...
by phaworth
Thu Oct 15, 2015 10:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Thanks for that Mark. Sounds like I may still be able to get the dictionary parsed with fastJSON.
Pete
by phaworth
Thu Oct 15, 2015 8:32 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

I couldn't find it online but did download it directly from http://www.rozek.mobi/LiveCode/JSONlib/index_scr_en.html. I'm happy to say that it parsed the LC8 dictionary JSON file with no problems, not quite so happy that it took roughly 32 seconds to do it. But bottom line is that it provided me wit...
by phaworth
Thu Oct 15, 2015 1:13 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Hi Greg, I've been continuing to work with fastJSON and the LC8 dictionary file. I decided to hand each json element off to jsonToARray as a separate thing which worked better, no error, but then parsing the following never returned from jsonToArray and the script stopped executing, no error message...
by phaworth
Fri Oct 09, 2015 11:52 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Thanks Greg, I appreciate you trying to figure it out. I know enough about JSON that I noticed the single element arrays too but there are a lot of them and it seems the error doesn't occur until well after it's processed at least some of them. This is probably a huge longshot but in my attempts to ...
by phaworth
Fri Oct 09, 2015 7:19 pm
Forum: Databases
Topic: Creating a unique numbering scheme - SQLite
Replies: 4
Views: 1274

Re: Creating a unique numbering scheme - SQLite

Hi,
You can only use AUTOINCREMENT on primary key fields in SQLite. I usually just use the primary key value as the invoice number but if you want ti to be formatted the way you mentioned, you'll need to do it within LC.
Pete
by phaworth
Fri Oct 09, 2015 6:38 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

Hi Greg, Right, Ali Loyd mentioned that. As mentioned, I am not familiar with json format but shouldn't lines 2 to -1 of the file be valid json? Line 1 is the javacsript var declaration. As mentioned, I pasted those lines into a couple of the online json viewers that are available and they were able...
by phaworth
Fri Oct 09, 2015 1:43 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: "new" JSON library fastJson
Replies: 62
Views: 9388

Re: "new" JSON library fastJson

I should also mention that I pasted the JSON into a couple of online JSON viewers and they were able to interpret it correctly.

Also, the JSON starts at line 2 of the file I mentioned.

Pete

Go to advanced search