JSON.prg issue

Topics: Developer Forum
Jul 16, 2012 at 3:02 PM

There are two instances of SET LIBRARY TO in JSON.prg, but only the first one has been modified to use oProp.AppStartPath.

Also, wouldn't it be best to include the ADDITIVE clause to both of these instances?

Dan

Coordinator
Jul 16, 2012 at 4:17 PM
Edited Jul 16, 2012 at 11:50 PM

Absolutely.  Thanks for the tips.

btw, I think you meant SET LIBRARY TO JSON.fll 

Jul 16, 2012 at 11:47 PM

I actually meant it the way I wrote it, ie:

There are two instances of the "SET LIBRARY TO" command in JSON.prg.

Both instances are loading the json.fll library.

Coordinator
Jul 16, 2012 at 11:51 PM

Sorry I read your statement wrong.

Are you finding that it's not loading the FLL (in which case it would fall back to fox code but be slower)???

Jul 17, 2012 at 12:23 AM

Not a problem... I could have been clearer in my original posting.

The issue is in line 729, which reads "SET LIBRARY TO JSON.FLL". When this line of code is hit, a .NET error is generated because the API library can not be found. I resolved the issue by changing this line to match line 387.

Coordinator
Jul 17, 2012 at 12:26 AM

Thanks.  Is this JSON prg and fll meeting your needs?  And are you using jQuery at all?

Jul 17, 2012 at 12:39 AM

Yes, JSON is working well. Only issue I have run into thus far had to do with Javascript's case sensitivity. I pasted an object with a property named "Type" and when the object was returned, the property name was "type".

Haven't messed around with jQuery yet.

Jul 26, 2013 at 11:12 PM
Parse error on line 105:
... } ] }}True
--------------------^
Expecting 'EOF', '}', ',', ']'

I'm getting this error.