Skip to content

v1.4.2.1

Compare
Choose a tag to compare
@Sebastien-XL Sebastien-XL released this 20 Nov 10:29
· 8 commits to master since this release

Added:

  • In App Purchase and Push Notifications Android plugins' Play Services Resolver dependencies configurations in readme
  • Force use of InvariantCulture for DateTime parsing to avoid exceptions if system's default calendar is not gregorian
  • SkipToJson and SimpleToJson attributes to prevent exceptions using LitJson.JsonMapper.ToJson() with complex objects

New LitJson library attributes usage:

  • [SkipToJson]: Will simply ignore this Field/Property when using LitJson.JsonMapper.ToJson()
  • [SimpleToJson]: Will simply use .ToString() for this Field/Property instead of in-depth inspecting it when using LitJson.JsonMapper.ToJson()
public class MyClass {
    // Will process it the normal way
    public int normalInt;
    // Will ignore it
    [SkipToJson] public int skippedInt;
    // Will call .ToString() instead of printing all of its fields/properties
    [SimpleToJson] public Color toStringColor;
}

...

MyClass myInstance = new MyClass();
Debug.Log(LitJson.JsonMapper.ToJson(myInstance));