Up to date Commercial or Open Source JSON Parser?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Paul.RaulersonBUSIvAg
Posts: 21
Joined: Tue Aug 07, 2012 2:00 pm

Up to date Commercial or Open Source JSON Parser?

Post by Paul.RaulersonBUSIvAg » Wed Aug 29, 2012 12:27 pm

It isn't that hard to write a parser and encoder for JSON, but it sure would be nice to just be able to drop a few bucks and buy one.

I looked at the Libjson-1.xx download, but it is a few years old, has no real documentation, and uh - didn't work as expected. It is a couple of years old, and doesn't appear to be supported.

The only other one I see from searching the Forums was last updated in January of this year, but isn't really a json parser. It appears to be APIs for Tweeter, Facebook, and Google. Not quite what I am looking for, and besides, I could not figure out how to download it from the repository. :roll:

Prefer a LiveCode solution as it needs to run on multiple platforms, including iPad/iPhone.

Thanks for any tips.

-Paul

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Up to date Commercial or Open Source JSON Parser?

Post by FourthWorld » Wed Aug 29, 2012 5:29 pm

I haven't used libJSON myself, but it has a pretty good reputation. What issues did you experience with it?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Contact:

Re: Up to date Commercial or Open Source JSON Parser?

Post by mwieder » Wed Aug 29, 2012 5:46 pm

Yes, libJSON is completely LiveCode, so it's portable to the mobile environments. You *should* be able to point it at a jSON stream and have it do the conversion for you. After that you're dealing with native LiveCode arrays. And convert back when you need to.

Paul.RaulersonBUSIvAg
Posts: 21
Joined: Tue Aug 07, 2012 2:00 pm

Re: Up to date Commercial or Open Source JSON Parser?

Post by Paul.RaulersonBUSIvAg » Thu Aug 30, 2012 4:41 am

FourthWorld wrote:I haven't used libJSON myself, but it has a pretty good reputation. What issues did you experience with it?
Probably mostly user error. It seemed to miss some data items last night, but checking it tonight, they are all there, so maybe it was just me being too tired.
I really wish it was commercial/supported though. :)

-Paul

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Up to date Commercial or Open Source JSON Parser?

Post by FourthWorld » Thu Aug 30, 2012 5:26 pm

Paul.RaulersonBUSIvAg wrote:I really wish it was commercial/supported though. :)
We all do. Unfortunately, the author of that library died. We miss him; he wrote a lot of cool stuff, gave it away freely, and was enjoyable conversation along the way.

It might be nice if someone had the time and interest to contribute enhanced docs for it. Any takers?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply