GBX.NET.NewtonsoftJson 1.0.1

GBX.NET.NewtonsoftJson

NuGet Discord

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();

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

.NET 8.0

.NET Standard 2.0

Version Downloads Last updated
1.0.1 23 09/29/2024