README.md 1.78 KB
Newer Older
jang dong hyeok's avatar
.    
jang dong hyeok committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# com.unity.nuget.newtonsoft-json
Unity Package for [Newtonsoft's JSON library] (https://www.newtonsoft.com/json)

# Version

This package includes the DLL version of JSON.Net

Version: 12.0.301

# Add to your project with git url (2019.3+)

Open the manifest.json for your project and add the following entry to your list of dependencies

```json
"com.unity.nuget.newtonsoft-json": "git@github.cds.internal.unity3d.com:unity/com.unity.nuget.newtonsoft-json.git",
```

Example:
```json
{
  "dependencies": {
    "com.unity.nuget.newtonsoft-json": "git@github.cds.internal.unity3d.com:unity/com.unity.nuget.newtonsoft-json.git",
    "com.unity.ads": "2.0.8",
    "com.unity.analytics": "3.2.2",
    "com.unity.collab-proxy": "1.2.15",
    ...
    }
 }
```

# Add to your project with version

Open the manifest.json for your project and add the following entry to your list of dependencies with the desired version

```json
"com.unity.nuget.newtonsoft-json": "1.1.2",
```

Example:

```json
{
  "dependencies": {
    "com.unity.nuget.newtonsoft-json": "1.1.2",
    "com.unity.ads": "2.0.8",
    "com.unity.analytics": "3.2.2",
    "com.unity.collab-proxy": "1.2.15",
    ...
    }
 }
 ```

 # Add to your Package as a dependency

 Open the package.json for your project and add the following entry to the dependencies list with the desired Version

```json
"com.unity.nuget.newtonsoft-json": "1.1.2"
```

Example:
```json
 "dependencies": {
		"com.unity.nuget.newtonsoft-json": "1.1.2"
	},
```


# Using the package

 In the target package, modify the asmdef to include the `Newtonsoft.Json.dll` under the Assembly References section
 in the asmdef inspector.  The section will not appear until the Override References toggle above is toggled on.
 Once that is done, your package will have full access to Newtonsoft Json apis.