This project has moved and is read-only. For the latest updates, please go here. not able to deserialize properties of type 'long'

Apr 7, 2014 at 6:13 AM
I have a member of type 'long' in my object I am trying to deserialize in my web api (which uses for deserialization). 
class Employee{
public long id

If the request is {"id":1234}, the object isn't successfully deserialized
But if the request is {"id":"1234"}, then it deserializes fine.

Why this strange behavior? How do I get around it?