I ran into an issue where one of my structures (server side) has a
member of type 'char'. If this member is not initialized, its value is
correctly serialized as '\0'.  The client (IE) complains of an
unterminated string constant when eval'ing the responseText in
core.ashx. It seems like  IE, or javascript, doesn't like strings with
embedded null characters.

example

  class MyClass
  {
    public char CharVal;
  }

is serialized as (I removed the __type member)

  {\"CharVal\":\"\0\"}

which IE sees as

  {\"CharVal\":\"


Firefox seems to fare a little better, but fails to serialize back to
JSON correctly.


I can work around this issue, but I thought I'd point it out anyway.

I'm using v6.4.4.1, btw/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to