Json as parameter, with type should i use ?

Posted on 2011-10-16
Last Modified: 2013-12-16

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
Question by:Mortarello
    LVL 11

    Accepted Solution

    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.

    Author Comment

    Hi Brutaldev,

    Thanks for your answer.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now