checking if type is System.Object but with a primitive value on deserial...

This commit fixes if the type comes as System.Object but the value is an primitive type on JsonDeserialization.