Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Hosting and Servers
  4. How to pass List<ComplexType> as parameter in Json REST Service.

How to pass List<ComplexType> as parameter in Json REST Service.

Scheduled Pinned Locked Moved Hosting and Servers
jsoncsharpdata-structureshelptutorial
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rocky23
    wrote on last edited by
    #1

    Hi, I have a REST Json method like this.

    double[] GetResult(List tinput, string tdata);

    And i am expecting a response from this method. But based on the result available in few articles in Internet, it seems like ComplexType object can only be passed in POST method not in GET method. But i want an array result from the above method as response. Could any one help me how the UriTemplate an be assigned to the above method.? And how to pass JsonInput Parameter to this REST method from c# client application and how to parse the result back to double[] type at client side.?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups