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_Related Related Topics sp_TopicIcon
My JSON data comes with a label for the root object
08/05/2012
23:11
Avatar
mistr_e
New Member
Members
Forum Posts: 2
Member Since:
05/11/2008
sp_UserOfflineSmall Offline

I'm sure I'm not using quite the terminology but I'll try to explain.

I'm using this JSON class for ASP classic.

http://www.webdevbros.net/2007.....038;hellip;..datatypes/

I can not get it to return my JSON without an initial label.

It returns

{"mandatorylabel": {"page": 1,"total": 1,"records": 6,"rows": [{"firstname": "Chris"},{"firstname": "Dave"}]}}

But I cannot find any settings to get jqGrid to understand it. It does work with this though.

{"page": 1,"total": 1,"records": 6,"rows": [{"firstname": "Chris"},{"firstname": "Dave"}]}

I can provide an empty string and indicate it's already enclosed to my ASP class giving me this

"": {"page": 1,"total": 1,"records": 6,"rows": [{"firstname": "Chris"},{"firstname": "Dave"}]}

But still no go with jqGrid.

Is there a jsonReader option I'm missing or should I be looking at issues with the ASP class?

Both results seem to be perfectly valid JSON responses.

Any help is greatly appreciated

09/05/2012
16:11
Avatar
mistr_e
New Member
Members
Forum Posts: 2
Member Since:
05/11/2008
sp_UserOfflineSmall Offline

I figured it out. If I use

Empty

 instead of

""

 as a label name it doesn't use a label at all.

09/05/2012
16:19
Avatar
brandonkirsch
Ohio
Member
Members
Forum Posts: 9
Member Since:
27/04/2012
sp_UserOfflineSmall Offline

For future reference, the jsonReader options are what you would use to adjust where JQGrid will look inside the JSON object for all of the different values you are supposed to supply.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
33 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