Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Remove unnecessary field from json return object.
ActionContext
Configuration
ControllerContext
Request
ModelState
Posted
Comments
Suvendu Shekhar Giri 11-Jan-16 5:57am    
Not Clear. Which fields are you talking about?

1 solution

You might define an object containing the requested subset of properties (let's call it 'subobject'), initialize it with received object and then serialize it ('subobject') back to JSON.
 
Share this answer
 
Comments
piyushpiyush 11-Jan-16 6:23am    
I try using serialize it ('subobject') back to JSON but still following field display with json return object.

ActionContext
Configuration
ControllerContext
Request
ModelState

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