-
Notifications
You must be signed in to change notification settings - Fork 143
Conditional Compilation Symbols
Define appropriate conditional compilation symbol depending on your framework
.NET 2.0+ (including .NET 3.0/3.5/4.0/4.5)
#define SIMPLE_JSON_REFLECTIONEMITWindows Runtime (Windows Metro Style Apps)
#define NETFX_CORENETFX_CORE is automatically defined for new WinRT projects by Visual Studio.
Silverlight 4+, .NET 4.0+ and WinRT (.net frameworks which supports dynamic)
#define SIMPLE_JSON_DYNAMICDataContract/DataMember support
#define SIMPLE_JSON_DATACONTRACTYou are also required to reference System.Runtime.Serialization library.
Hiding SimpleJson class
#define SIMPLE_JSON_INTERNALThis will make the SimpleJson class to internal class instead of public.
Hiding JsonArray and JsonObject class
#define SIMPLE_JSON_OBJARRAYINTERNALThis will make the JsonArray and JsonObject classes to internal class instead of public. You can cast JsonObject
to IDictionary<string,object> or IDictionary<string,dynamic> and JsonArray to IList<object> or IList<dynamic>.