Hey Bruce,
fist of all: thanks for all your work on this! It's obvious that you invested a lot of time into those libraries and in addition to that you're hanging out here giving support to us.
Much appreciated!
Now on to my case ;)
I'm trying to work with the JSON results of a services' API I regularly work with (Pinboard bookmarking service,
www.pinboard.in).
A typical result to a query (show me all bookmarks with tag x) looks like this:
[{"href":"http:\/\/
en.wikipedia.org\/wiki\/Exploratory_Data_Analysis","description":"Exploratory data analysis - Wikipedia, the free Encyclopedia","extended":"","meta":"576e8bbed7ed3646da28523cc4cf0f73","hash":"8114ff56779cbce0c8cdeaedd21edab2","time":"2011-08-12T02:07:00Z","shared":"no","toread":"no","tags":"da-extended DA-source"}]
There's just one result because I only have one bookmark with this tag, otherwise there would be more elements after the last "}".
My problem is that I thinkt I got the query right (tried with generalQuery and an entry in the module restLibrary and the direct way via restQuery) but I always run into the same error:
First msgbox:
---------------------------
got [ expected --({)-- Bad JSON at character 1 starting at [{"href":"http:\/\/
en.wikipedia.org\/wiki\/Exploratory_Data_Analysis","description":"Exploratory data analysis - Wikipedia, the free encyclopedia","extended":"","meta":"576e8bbed7ed3646da28523cc4cf0f73","hash":"8114ff56779cbce0c8cdeaedd21edab2","time":"2011-08-12T02:07:00Z","shared":"no","toread":"no","tags":"da-extended DA-source"}]
---------------------------
Second msgbox:
---------------------------
Could find no data for query da-extended- {
"_deserialization":""
}
---------------------------
I tried to debug this and always end up at cJobject.dsProcess where badJSON gets called.
To be honest I could invest a couple of hours and maybe I could get to the bottom of this. If you don't have time I'm going to get back to my desk and fix this myself - I really appreciate your support over here but don't want to stretch it too far.
Directly below the call to badJSON is the Case "[" that should catch the first "[" of the API result.
Do you have any clue what's happening here?
Any more input from my side helpful?
Thank you very much!
Cheers,
Johannes