Skip to content

Commit b9018df

Browse files
committed
DynamicObject Support for .Net4+
Now you can use json.name instead of json["name"]
1 parent fb9472b commit b9018df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

RestSharp/SimpleJson.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@
4646

4747
// original json parsing code from http://techblog.procurios.nl/k/618/news/view/14605/14863/How-do-I-write-my-own-parser-for-JSON.html
4848

49+
#if NET4
50+
#define SIMPLE_JSON_DYNAMIC
51+
#endif
52+
4953
#if NETFX_CORE
5054
#define SIMPLE_JSON_TYPEINFO
5155
#endif

0 commit comments

Comments
 (0)