TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
sujit gujrathi
1.7k
83
6.1k
Return Json object in specific format from WCF
Feb 14 2013 8:27 AM
hi
,
i
know how to return
json object
from WCF, I am stuck with
return Json object
in
Specific Format
like.
At the time of sending response from server site,
Json object
should contain Message and Status.
{
"Result": {
"
status
": "1",
"
message
": "message according to status",
"
JSArray
": [
{
"JSCity": {
"city_id": "23",
"city_short_name": "CY",
"city_long_name": "Cypress "
}
},
{
"JSCity": {
"city_id": "62",
"city_short_name": "DB",
"city_long_name": "Dublin"
}
},
{
"JSCity": {
"city_id": "48",
"city_short_name": "FJ",
"city_long_name": "Fort Jones"
}
},
{
"
JSState
": {
"city_id": "45",
"city_short_name": "ML",
"city_long_name": "Malibu "
}
}
]
}
}
Highly
appriciate
your help.
Awaiting your response on the same.
Regards
sujit
Reply
Answers (
0
)
Return Json object from WCF
WCF Service works locally but returns 404 on remote server