Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
JSON parsererror - Sometimes
17/02/2009
12:49
Avatar
k3ithfowl3r
New Member
Members
Forum Posts: 2
Member Since:
17/02/2009
sp_UserOfflineSmall Offline

I have the jQGrid's datatype: json. I am using a Search Form to get criteria from the user, I then set the postdata and retrieve the results.

On the server, I have an object which has a method that returns Formatted JSON. This ensures that the JSON is consistenly formatted.

I can make a request with Criteria A and it returns and populates the grid. If I make a request with Criteria B, there is a parsererror within jQGrid on the complete function.

I'm pretty positive that something in my data is causing this issue. Does anyone know of any tricks to pinpoint exactly what may be causing the parsererror. It's like trying to find a needle in a haystack.

Thanks!

17/02/2009
13:40
Avatar
k3ithfowl3r
New Member
Members
Forum Posts: 2
Member Since:
17/02/2009
sp_UserOfflineSmall Offline

Well, I've discovered the issue. It was the data, as I had thought. There is a TEXT DESCRIPTION in the results. The previous interface allowed Double Quotes within the text. THe method formatting the JSON, wraps that text description in double quotes.

Therefore, I get something like this:
"The title of the book is "JSON Unleashed" and it is good!"

In light of this, I will need to alter the interface to account for this as well as alter the formatting to handle legacy data.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
38 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information