Michael,

Thanks! We'll start porting our methods to _javascript_Array and _javascript_Object today.  Maybe that will be enough diversity to test the new deserialization.

Matthew

On 7/20/06, Michael Schwarz <[EMAIL PROTECTED]> wrote:

Hi Matthew,

please download the current version 6.7.20.1 or higher from
http://www.ajaxpro.info/. I have done following example which is
working correct, now:


[AjaxPro.AjaxMethod]
public static string Test(string h)
{
  _javascript_Array jso = new _javascript_Array();
  _javascript_Array jso1 = new _javascript_Array();
  _javascript_Array jso2 = new _javascript_Array();
  _javascript_String jss = new _javascript_String("000000000001");
  jso1.Add(jss);
  jso2.Add(jss);
  jso.Add(jso1);
  jso.Add(jso2);

  string json = AjaxPro._javascript_Serializer.Serialize(jso);

  _javascript_Array a =
(_javascript_Array)_javascript_Deserializer.DeserializeFromJson(json,
typeof(_javascript_Array));
  string json2 = AjaxPro._javascript_Serializer.Serialize(a);

  return (json == json2).ToString();    // this will return "True"
}




Regards,
Michael



On 7/20/06, Matthew Raymer <[EMAIL PROTECTED]> wrote:
> Michael,
>
> Why does the following not work on the new DLL?
>
>                 _javascript_Array jso = new _javascript_Array();
>                 _javascript_Array jso1 = new _javascript_Array();
>                 _javascript_Array jso2 = new _javascript_Array();
>                 _javascript_String jss = new
> _javascript_String("000000000001");
>                 jso1.Add(jss);
>                 jso2.Add(jss);
>                 jso.Add(jso1);
>                 jso.Add(jso2);
>
>                 string json =
> AjaxPro._javascript_Serializer.Serialize(jso);
>                 Object o  =
> AjaxPro._javascript_Deserializer.DeserializeFromJson(json,
> jso.GetType());
>
> Matthew
>
> --
> OpenSubject: for efficient mail
> ----------------------------------------------
> NRN: No Reply Necessary
> RYN: Reply with 'Yes' or 'No'
> AYQ: Answering Your question
> ATC: Attachement is important
> 1QM: One Question Message
> MQM: Multiple Question Message
> FYA: For your Archive
> FYI: For your information (NRN)
> WFR: Waiting for your Reply/Advice/Permission
> AET: Answer Expected Today/this Week/within a Month
> RAF: Read and Forward (jokes, quotes, interesting)
> ----------------------------------------------
> More information: http://opensubject.pbwiki.com/
> >
>
>
>
>
>


--
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]


NRN: No Reply Necessary
RYN: Reply with 'Yes' or 'No'
AYQ: Answering Your question
ATC: Attachement is important
1QM: One Question Message
MQM: Multiple Question Message
FYA: For your Archive
FYI: For your information (NRN)
WFR: Waiting for your Reply/Advice/Permission
AET: Answer Expected Today/this Week/within a Month
RAF: Read and Forward (jokes, quotes, interesting)
----------------------------------------------
More information: http://opensubject.pbwiki.com/
--~--~---------~--~----~------------~-------~--~----~
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