Author: ClawedMonkey | Posted on: 6/6/2008 10:10:59 AM | Views : 528

I'm not 100% sure this is the correct forum to post this in, because it could reside in so many places.
On with the problem:
I have some JSON on my client, representing an object of a type generated by LINQ to SQL. Serializing to JSON and sending this object out to a browser is easy enough, but I then need to send this object as a parameter to a web service/page method and deserialize it back into its original type, with a few modified values.
For the most part, this all works very well, and much to my amazement, simply creating a webmethod/pagemethod like this:

[Webmethod]
public static test(TestType test)

will successfully deserialize the object back into "TestType" as long as the client passes the paramater as type Object and not type String.
Now heres the tricky part, though the object seems to deserialize correctly, there were two public properties that do not. They are both integers and represent foreign key IDs ...

Go to the complete details ...