Click here to Skip to main content
15,884,080 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
below is my code sample which i have used.

this is code behind method..(actions)

C#
public class user
        {
            public string Groups { get; set; }
            public string UserId { get; set; }
            public string Username { get; set; }
        }


SQL
[HttpGet]
        public JavaScriptResult test(user t)
        {
            return JavaScript("console.log(" + t + ")");
        }


in rest service i passed the json format like

[{"Groups":".Net","Userid":"4455","Username":"Rahul"}]


then how can i convert these values as json in code behind..



Thanks
Kanag.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900