GBX.NET.NewtonsoftJson 1.0.1
GBX.NET.NewtonsoftJson
Provides extensions for JSON serialization with Newtonsoft.Json
.
Framework support
- .NET 8
- .NET 6
- .NET Standard 2.0
Usage
Convert Gbx and any CMwNod
to JSON
Additional package GBX.NET.LZO
is required in this example.
using GBX.NET;
using GBX.NET.Engines.Game;
using GBX.NET.LZO;
using GBX.NET.NewtonsoftJson; // Add this
Gbx.LZO = new Lzo();
var gbx = Gbx.Parse<CGameCtnChallenge>("Path/To/My.Map.Gbx");
string jsonGbx = gbx.ToJson();
string jsonNode = gbx.Node.ToJson();
Print JSON of Gbx to console using TextWriter
Additional package GBX.NET.LZO
is required in this example.
using GBX.NET;
using GBX.NET.Engines.Game;
using GBX.NET.LZO;
using GBX.NET.NewtonsoftJson; // Add this
Gbx.LZO = new Lzo();
var gbx = Gbx.Parse<CGameCtnChallenge>("Path/To/My.Map.Gbx");
gbx.ToJson(Console.Out);
License
GBX.NET.NewtonsoftJson library is MIT Licensed.
No packages depend on GBX.NET.NewtonsoftJson.
.NET 6.0
- GBX.NET (>= 2.0.8)
- Newtonsoft.Json (>= 13.0.3)
.NET 8.0
- GBX.NET (>= 2.0.8)
- Newtonsoft.Json (>= 13.0.3)
.NET Standard 2.0
- GBX.NET (>= 2.0.8)
- Newtonsoft.Json (>= 13.0.3)
Version | Downloads | Last updated |
---|---|---|
1.0.1 | 23 | 09/29/2024 |