https://github.com/stansassets/com.stansassets.newtonjson
https://github.com/stansassets/com.stansassets.newtonjson
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stansassets/com.stansassets.newtonjson
- Owner: StansAssets
- License: mit
- Created: 2020-11-09T10:19:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-01T21:04:59.000Z (over 5 years ago)
- Last Synced: 2025-02-28T09:54:30.446Z (over 1 year ago)
- Size: 1020 KB
- Stars: 0
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Stan's Assets mirror of Newtonsoft.Json for Unity
Package exists because Unity package manager does not allow depdncinses in packages in
The original repo can be found [here](https://github.com/jilleJr/Newtonsoft.Json-for-Unity)
Json.NET is a popular high-performance JSON framework for .NET
This package is a fork of Newtonsoft.Json containing custom builds targeting standalone, portable (UWP, WP8), and AOT targets such as all IL2CPP builds (iOS, WebGL, Android, Windows, Mac OS X, et.al).
## Versioning format
_Staying with JamesNK's version syntax, but with a twist :dizzy:_
Based off JamesNK's versioning, but with the addition of two digits on the last segment.
This is for Newtonsoft.Json-for-Unity to be able to have independent releases,
at the same time still being easy to see which version of Json.NET it's based of.
![explanation of version][version-explanation.png]
Where official Json.NET 12.0.1 becomes Newtonsoft.Json-for-Unity 12.0.1_xx_.
## Changelog
Please see the [CHANGELOG.md][changelog.md] file inside this package.
### Install from NPM
* Navigate to the `Packages` directory of your project.
* Adjust the [project manifest file](https://docs.unity3d.com/Manual/upm-manifestPrj.html) `manifest.json` in a text editor.
* Ensure `https://registry.npmjs.org/` is part of `scopedRegistries`.
* Ensure `com.stansassets` is part of `scopes`.
* Add `com.stansassets.newtonjson` to the `dependencies`, stating the latest version.
A minimal example ends up looking like this. Please note that the version `X.Y.Z` stated here is to be replaced with [the latest released version](https://www.npmjs.com/package/com.stansassets.newtonjson) which is currently [](https://www.npmjs.com/package/com.stansassets.newtonjson).
```json
{
"scopedRegistries": [
{
"name": "npmjs",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.stansassets"
]
}
],
"dependencies": {
"com.stansassets.newtonjson: "X.Y.Z",
...
}
}
```
* Switch back to the Unity software and wait for it to finish importing the added package.
### Install from OpenUPM
* Install openupm-cli `npm install -g openupm-cli` or `yarn global add openupm-cli`
* Enter your unity project folder `cd `
* Install package `openupm add com.stansassets.newtonjson`
### Install from a Git URL
Yoy can also install this package via Git URL. To load a package from a Git URL:
* Open [Unity Package Manager](https://docs.unity3d.com/Manual/upm-ui.html) window.
* Click the add **+** button in the status bar.
* The options for adding packages appear.
* Select Add package from git URL from the add menu. A text box and an Add button appear.
* Enter the `https://github.com/StansAssets/com.stansassets.newtonjson.git` Git URL in the text box and click Add.
* You may also install a specific package version by using the URL with the specified version.
* `https://github.com/StansAssets/com.stansassets.newtonjson.git#X.Y.X`
* Please note that the version `X.Y.Z` stated here is to be replaced with the version you would like to get.
* You can find all the available releases [here](https://github.com/StansAssets/com.stansassets.newtonjson/releases).
* The latest available release version is [](https://github.com/StansAssets/com.stansassets.newtonjson/releases/latest)
For more information about what protocols Unity supports, see [Git URLs](https://docs.unity3d.com/Manual/upm-git.html).
---
This package is licensed under The MIT License (MIT)
Copyright (c) 2019 Kalle Jillheden (jilleJr)
See full copyrights in [LICENSE.md][license.md] inside repository