Dani, if I get the following URL:

http://www.daniweb.com/api/articles?page=1&orderby=firstpost&access_token=MY_TOKEN

it returns the attached JSON result, which fails to json_decode(). Can you have a look please?

Recommended Answers

All 6 Replies

Oh, I know why! OK, on it! ...

I can't decode in array nor object. Could it be that some code in one of the posts is causing this? According to my editors the first curly bracket and first straight bracket aren't closed properly.

OK fixed. Sorry about that ... I changed something the other day that I had no idea was going to affect the API!

I went ahead and removed the file you attached because it contained sensitive data about members (which is why it was broken in the first place).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.