Re: JSON import error

2017-11-03 Thread Dave Kilroy via use-livecode
quite agree, and as Jacque says “its the law” - and only the brave own up to 
their DOH! moments (of which I have several every hour)

kind regards

dave

>  From the thrid party perspective, it doesn’t matter whether the OP has an 
> epiphany, or another list contributor solves the problem.  All is good 
> interesting and helpful.   It’s also nice to see that even the wise ones have 
> the same 'moments of discovery' that the rest of us do. 
> 
> David G 
> 
> 
> > On 2 Nov 2017, at 6:57 pm, J. Landman Gay via use-livecode <[hidden email] 
> > >
> >  wrote: 
> > 
> > On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote: 
> >> https://en.wikipedia.org/wiki/Rubber_duck_debugging 
> >>  
> >>  >> > 
> > 
> > Yeah. Story of my life. I've since hit another error in the JSON import but 
> > now I'm afraid to post about it. :) 
> > 
> > -- 
> > Jacqueline Landman Gay | [hidden email] 
> > 
> >  
> > HyperActive Software   | http://www.hyperactivesw.com 
> > 
> >



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-03 Thread Mark Wieder via use-livecode

On 11/03/2017 05:03 AM, Phil Jimmieson via use-livecode wrote:

Or when you’re preparing an example stack for the bug report and realise that 
it’s not a bug, you’ve been doing it wrong...


Normally I find that right *after* filing the bug report.

--
 Mark Wieder
 ahsoftw...@gmail.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-03 Thread Mark Waddingham via use-livecode

On 2017-11-03 13:03, Phil Jimmieson via use-livecode wrote:

Or when you’re preparing an example stack for the bug report and
realise that it’s not a bug, you’ve been doing it wrong...


Recipe stacks for bugs are useful for all kinds of reasons ;)

Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-03 Thread Phil Jimmieson via use-livecode
Or when you’re preparing an example stack for the bug report and realise that 
it’s not a bug, you’ve been doing it wrong...

> On 3 Nov 2017, at 11:55, Mark Waddingham via use-livecode 
>  wrote:
> 
> On 2017-11-02 19:57, J. Landman Gay via use-livecode wrote:
>> On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
>>> https://en.wikipedia.org/wiki/Rubber_duck_debugging 
>>> 
>> Yeah. Story of my life. I've since hit another error in the JSON
>> import but now I'm afraid to post about it. :)
> 
> I do this all the time - quite often just trying to pose the question to 
> explain the problem leads to the solution :)
> 
> Warmest Regards,
> 
> Mark.
> 
> -- 
> Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
Phil Jimmieson  p...@liverpool.ac.uk  (UK) 0151 795 4236  (Mobile) 07976 983164
Computer Science Dept., Liverpool University, Ashton Building, Ashton Street
Liverpool L69 3BX  http://intranet.csc.liv.ac.uk/~phil/
I used to sit on a special medical board... ...but now I use this ointment.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-03 Thread Mark Waddingham via use-livecode

On 2017-11-02 19:57, J. Landman Gay via use-livecode wrote:

On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
https://en.wikipedia.org/wiki/Rubber_duck_debugging 



Yeah. Story of my life. I've since hit another error in the JSON
import but now I'm afraid to post about it. :)


I do this all the time - quite often just trying to pose the question to 
explain the problem leads to the solution :)


Warmest Regards,

Mark.

--
Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/
LiveCode: Everyone can create apps

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-03 Thread David V Glasgow via use-livecode
 From the thrid party perspective, it doesn’t matter whether the OP has an 
epiphany, or another list contributor solves the problem.  All is good 
interesting and helpful.   It’s also nice to see that even the wise ones have 
the same 'moments of discovery' that the rest of us do.

David G


> On 2 Nov 2017, at 6:57 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
>> https://en.wikipedia.org/wiki/Rubber_duck_debugging 
>> 
> 
> Yeah. Story of my life. I've since hit another error in the JSON import but 
> now I'm afraid to post about it. :)
> 
> -- 
> Jacqueline Landman Gay | jac...@hyperactivesw.com
> HyperActive Software   | http://www.hyperactivesw.com
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: JSON import error

2017-11-02 Thread J. Landman Gay via use-livecode

On 11/2/17 2:45 PM, Mark Wieder via use-livecode wrote:

On 11/02/2017 11:57 AM, J. Landman Gay via use-livecode wrote:

On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
https://en.wikipedia.org/wiki/Rubber_duck_debugging 



Yeah. Story of my life. I've since hit another error in the JSON 
import but now I'm afraid to post about it. :)




Anything having to do with lists/collections?

http://quality.livecode.com/show_bug.cgi?id=19698



I don't think so. The import works with most of the 300 entries in the 
file, but fails on a few with identical syntax that contain some unusual 
characters. I've reported it.


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-02 Thread Mark Wieder via use-livecode

On 11/02/2017 11:57 AM, J. Landman Gay via use-livecode wrote:

On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:
https://en.wikipedia.org/wiki/Rubber_duck_debugging 



Yeah. Story of my life. I've since hit another error in the JSON import 
but now I'm afraid to post about it. :)




Anything having to do with lists/collections?

http://quality.livecode.com/show_bug.cgi?id=19698

--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-02 Thread J. Landman Gay via use-livecode

On 11/2/17 6:52 AM, Dave Kilroy via use-livecode wrote:

https://en.wikipedia.org/wiki/Rubber_duck_debugging 



Yeah. Story of my life. I've since hit another error in the JSON import 
but now I'm afraid to post about it. :)


--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-02 Thread Dave Kilroy via use-livecode
https://en.wikipedia.org/wiki/Rubber_duck_debugging 



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-02 Thread Monte Goulding via use-livecode
file: will recognise the BOM and decode the text correctly. 

> On 2 Nov 2017, at 5:36 pm, J. Landman Gay via use-livecode 
>  wrote:
> 
> I sent my message too soon. If I import as "file:" instead of "binfile:" it 
> mostly works.
> 
> You always figure it out as soon as you post. It's a rule.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: JSON import error

2017-11-02 Thread J. Landman Gay via use-livecode
I sent my message too soon. If I import as "file:" instead of "binfile:" 
it mostly works.


You always figure it out as soon as you post. It's a rule.

On 11/2/17 1:02 AM, J. Landman Gay via use-livecode wrote:
I am trying to convert some JSON to a LC array. Both JSONImport and 
JSONToArray are failing. JSONToArray gives only a generic "error in 
function". JSONImport gives this:


863,9,9,runtime
864,9,9,syntax error: 1:1 Unexpected character '˛'
865,9,9,json.lcb
866,9,9,65
897,9,9,1
865,9,9,json.lcb
866,9,9,262
897,9,9,1
219,9,9,JSONimport
465,9,9

The JSON is full of foreign characters, saved on disk as UTF-16 (with 
BOM), and read into LC as binary text. I've run the text through several 
online JSON validators and none report any problems.


I don't know if the above error will come through the list correctly but 
it isn't a normal comma. LC's charToNum() reports 254. I pasted it into 
BBEdit's "find" dialog and when I do a search on the actual file, BBEdit 
says it doesn't exist in there.


Any ideas what might be wrong?




--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode