Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 2.41 KB

File metadata and controls

72 lines (49 loc) · 2.41 KB
Game Frame X Logo

Game Frame X LitJson

License Version Unity Version Documentation

All-in-One Solution for Indie Game Development · Empowering Indie Developers' Dreams


Documentation · Quick Start · QQ Group: 467608841 / 233840761


English | 简体中文 | 繁體中文 | 日本語 | 한국어

Project Overview

An improved LitJson library for Unity, repackaged from XINCGer/LitJson4Unity.

This library serves as a sub-module for GameFrameX.

Quick Start

Edit your Unity project's Packages/manifest.json and add the scopedRegistries section:

{
  "scopedRegistries": [
    {
      "name": "GameFrameX",
      "url": "https://gameframex.upm.alianblank.uk",
      "scopes": [
        "com.gameframex"
      ]
    }
  ]
}

Then add this package to dependencies:

{
  "dependencies": {
    "com.gameframex.unity.xincger.litjson": "1.1.1"
  }
}

scopes controls which packages are resolved through this registry. Only packages whose names start with com.gameframex will be fetched from it.

Modifications

  1. Added link.xml for stripping filter
  2. Added LitJsonCroppingHelper anti-stripping script

Features

Based on the original LitJson library, with additional features not supported in the original:

  • Support for float type
  • Support for Unity built-in types (Vector2, Vector3, Rect, AnimationCurve, Bounds, Color, Color32, Quaternion, RectOffset, etc.)
  • Support for JsonIgnore Attribute to skip serialization of certain fields
  • Support for formatted JSON output