note to self - google groups is not a code-editor; tabbing and pressing
enter does not move the brace character.

I have created a struct inpstuff
   {
      public string name;
      public string id;
}

and tried

inpstuff i =
(inpstuff)AjaxPro.JavaScriptDeserializer.Deserialize(strJson,
(AjaxPro.IJavaScriptObject));
inpstuff i =
(inpstuff)AjaxPro.JavaScriptDeserializer.Deserialize(strJson,
typeof(inpstuff));

and many other things.

Could someone point me to some sample code please?  I would be ever so
grateful.

Thanks,

troy.

p.s. what does the error "word u" mean?  I get that a lot.

On Oct 15, 12:16 am, "tforster" <[EMAIL PROTECTED]> wrote:
> I've spent about four hours now between the blog, google groups and the
> .vsi kit.  All I want to do is access a passed json string inside my
> app.
>
> I have string strJson = "{\"name\":\"abc\",\"id\":\"GVMZGFJXVg\"}";
>
> How can I reference the name and id properties inside my c# code?
>
> I presume I need to use AjaxPro.JavaScriptDeserializer.Deserialize
>
> I have created a struct inpstuff
>    {
>       public string name;
>       public string id;


--~--~---------~--~----~------------~-------~--~----~
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/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/

The open source project is now located at 
http://www.codeplex.com/Wiki/View.aspx?ProjectName=AjaxPro
-~----------~----~----~----~------~----~------~--~---

Reply via email to