[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Json as parameter, with type should i use ?

Posted on 2011-10-16
2
Medium Priority
?
227 Views
Last Modified: 2013-12-16
Guys,

I'm playing with WCF and I dont want to expect one parameter .net Object. I would like to expect a json.
And my question is with type of parameter should be right for json ?

Can be string ?

Tks guys
0
Comment
Question by:Mortarello
2 Comments
 
LVL 11

Accepted Solution

by:
brutaldev earned 2000 total points
ID: 36975594
Use string to ensure that other callers will also be able to consume your service without any special library. JSON.NET converts back and forth from strings so it's intuitive to use. In terms of memory a string will be the smallest type that can be associated with JSON data.
0
 

Author Comment

by:Mortarello
ID: 36975656
Hi Brutaldev,

Thanks for your answer.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Loops Section Overview
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question