Subject: Episode Clip: Weight-Gain Relief

From: Extreme Fat Burning <[email-masked]>
Date: Mon, 23 Jun 2014 08:34:06 -0700

Your Metabolism Makeover
Presented by DocOz....

Episode Spoiler ~

Get ready to tone every inch without lifting a finger.
Eat real food and drop 1lb per day.

DocOz Episode Clip shows How:

View Clip Here -> http://www.foerect.com/oz/metabolism/makeover.video

This tip will have you burning fat non-stop no matter what your age.

Regards, 

DocOz Team

To edit your wellness subscription updates - write Current Update Alerts at one six four four Doral Dr Brookings, SD 57006 or visit http://www.foerect.com/k3j4/fi94.djj39

Thanks Drew, your TryGetMember sorted my issue around recursing into nested collections, but could you perhaps let us know what it is that makes it work. Is it in the fact that array lists are cast into IDictionary and then projected as DynamicJsonObjects, rather than being projected as arrayList members? Hope this isn't a too dumb question. Thanks for the answer :)   Mark Dickinson Feb 9 '11 at 13:05
  	  	 it's been a while since I looked at this but from memory what you're describing sounds right.   Drew N get an error in dynamic obj = serializerDeserialize(json, typeof(object)); saying that no overload for method with 2 arguments..wrong dll or what? the type I'm using is  which is in version 4.0.0.0    Drew Noakes Jun 19  is in    you're absolutely right.   Drew Noakes Dec 16 '11 at 16:44I found that your ToString method wasn't working for me, so I rewrote it. It might have some bugs, but it's working over my dataset, so I'll provide it here for anyone else who might be having trouble with this:  I can't see why not, but I'm not familiar enough with VB.NET to convert the code for you. You could compile the C# code and use it via an assembly reference, or try to convert it yourself. I don't think it would be too hard to convert.   Drew Noakes Jan 9 '12 at 9:24
Yes, I already used the c# assembly, but it is still the same. This "dynamic" object detection didnt work. In my case, "data" is an array of Objects that each of them includes key-value pair for json data.   Tim Jan 9 '12 at 17:36 
7	  	
You can use - it offers a Decode method that returns a dynamic object. I've also posted this info as an answer.   Vlad Feb 29 '12 at 7:30
that just helped me a lot, thanks!   The Poet May 28 '12 at 22:53
  	  	
This helped me a lot as well, but I'm curious what I should do if I need to use the .Serialize method, which currently only throws a NotImplementedException... I'm not too familiar with sealed classes and/or extended abstract classes. Can anyone point me in the right direction?   Cory W. Aug 29 '12 at 15:24
1	  	
sometimes in js you have fields with special chars like "background-color". To access such fields in js you do obj["background-color"]. How can I access such fields from c# after deserializing to dynamic object? I can't do obj.background-color, of course, and obj["background-color"] doesn't seem to work. It would be nice if the dynamic object could also be accessed as a dictionary, at the same time, exactly like in js.   Radu Simionescu Sep 28 '12 at 11:59  Long I believe I have failed to state my case clearly, dear fellow. Let me attempt to rectify my error. I know what a dynamic is. This doesn't allow you to pass in a JSON object and use d.code, you'd have to do d["code"].Value, which isn't what most people finding this answer want, we already know how to get the dictionary and casting it to a dynamic is a total waste of time. I respectfully disagree, sir.   mattmanser Jul 1 '11 at 9:22 
11	  	
I already wasted those minutes trying his code cus I didn't read the comments or scrolled down :(   Shawn Mclean Jul 13 '11 at 15:05
 I really don't understand you. my answer was picked as the best answer. Please think who is wrong.   Peter Long Jul 14 '11 at 2:37
 we already know how to get the dictionary and casting it to a dynamic. It does not have to be a dictionay. Json also have lists besides dictionary. And also lists and dictionaries could be nested. My code could handle all of these situations. BUT your method can NOT.   Peter Long Jul 14 '11 at 2:44 
 instead of d["code"].Value, you want d.code. As far as I know, it is impossible(or meaningless). Think of dynamic as deferring part of the compilers job to runtime. That's what dynamic is useful for. Dynamic is not mean to solve your problem.   Peter Long Jul 14 '11 at 2:58
 is tripping - this works beautifully - thanks peter +1   Fraser Apr 25 '12 at 12:59
Thank you Peter, this was precisely what I needed!   Anders Sep 24 '12 at 21:52
this is simple and direct-to-the-. While there are 3rd party libraries that are more full-featured and more efficient (ServiceStack comes to mind, NOT the overrated and super-bloated JSON.NET libraries), sometimes it's better to have the native option (which is available since .NET 4.x) if you don't necessarily need the speed...also, @mattmanser is wrong on all counts; he doesn't seem to grasp what dynamic types are at the time he posted his comments.   Dexter Legaspi Feb 22 at 16:39