Skip to content

GameFrameX/com.gameframex.unity.xincger.litjson

Repository files navigation

GameFrameX Logo

Game Frame X LitJson

License Version

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

Documentation | Quick Start | QQ Group

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

About

LitJSON for Unity - Improved lightweight JSON library optimized for Unity with fast serialization and deserialization

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages