Newtonsoft Json For Unity Converters by jilleJr - 4

Importers & Exporters

Converters of common Unity types for Newtonsoft.Json. Goes hand in hand with jilleJr/Newtonsoft.Json-for-Unity

Unknown VersionMIT LicenseUpdated 16 days agoCreated on January 19th, 2020
Go to source

Unity Converters for Newtonsoft.Json

Codacy grade Contributor Covenant

This package contains converters to and from common Unity types. Types such as Vector2, Vector3, Matrix4x4, Quaternions, Color, and more.

The perfect complement to the jilleJr/Newtonsoft.Json-for-Unity repo.

❌ NOT RELEASED YET ❌

Click the “Watch” button at the top to get an email when we release.

Prerequisites

The Newtonsoft.Json library of the correct Major version added to your project.

Recommended to use the jillejr.newtonsoft.json-for-unity package.

Installation via Unity Package Manager

If you already have the jilleJr/Newtonsoft.Json-for-Unity scoped registry configured

If you have the jillejr.newtonsoft.json-for-unity package installed, then most probably yes, you have the scoped registry configured.

  1. Open the Package Manager UI Window > Package Manager

    preview of where window button is

  2. Make sure you’re viewing “All packages” and not just “In Project”

  3. Search for json

  4. Click the “Json .NET Converters of Unity types” package

    showing search results

  5. Click “Install”

    install button down at bottom right

If you don’t have the jilleJr/Newtonsoft.Json-for-Unity scoped registry configured

Open <project>/Packages/manifest.json, add scope for jillejr, then add the package in the list of dependencies.

À la:

{
  "scopedRegistries": [
    {
      "name": "Packages from jillejr",
      "url": "https://npm.cloudsmith.io/jillejr/newtonsoft-json-for-unity/",
      "scopes": ["jillejr"]
    }
  ],
  "dependencies": {
    "jillejr.newtonsoft.json-for-unity": "12.0.101",
    "jillejr.newtonsoft.json-for-unity.converters": "12.0.1",

    //...
  }
}

Done!

Updating the package

Updating via the UI

Open the Package Manager UI Window > Package Manager

where to open package manager window

Followed by pressing the “Update to x.x.x” button down at the lower right while having the jillejr.newtonsoft.json-for-unity.converters package selected.

outdated package in package list update button

Versioning format

To use the package with Newtonsoft.Json, you must match the Major component of the versions for it to compile. The rest of the components are reserved for the iterations of this package, Newtonsoft.Json-for-Unity.Converts.

explanation of version

Where official Json.NET 12.0.1 becomes Newtonsoft.Json-for-Unity.Converters 12.xx.xx.

Changelog

Please see the CHANGELOG.md file inside this package.


This package is licensed under The MIT License (MIT)

Copyright © 2019 Kalle Jillheden (jilleJr)
https://github.com/jilleJr/Newtonsoft.Json-for-Unity.Converters

See full copyrights in LICENSE.md inside repository

Show all projects by jilleJr