ActDim.Three.NewtonsoftJson
1.0.10
dotnet add package ActDim.Three.NewtonsoftJson --version 1.0.10
NuGet\Install-Package ActDim.Three.NewtonsoftJson -Version 1.0.10
<PackageReference Include="ActDim.Three.NewtonsoftJson" Version="1.0.10" />
<PackageVersion Include="ActDim.Three.NewtonsoftJson" Version="1.0.10" />
<PackageReference Include="ActDim.Three.NewtonsoftJson" />
paket add ActDim.Three.NewtonsoftJson --version 1.0.10
#r "nuget: ActDim.Three.NewtonsoftJson, 1.0.10"
#:package ActDim.Three.NewtonsoftJson@1.0.10
#addin nuget:?package=ActDim.Three.NewtonsoftJson&version=1.0.10
#tool nuget:?package=ActDim.Three.NewtonsoftJson&version=1.0.10
ActDim.Three.NewtonsoftJson
ActDim.Three.NewtonsoftJson is the official Newtonsoft.Json compatibility adapter and converter library for ActDim.Three.
Overview
This library provides full support for serializing and deserializing ActDim.Three 3D scene graphs (SceneDocument), resource pools, and typed array attributes (BufferAttribute, Float32Array, Uint32Array, etc.) using Newtonsoft.Json.
It decouples Newtonsoft.Json dependencies from the core engine ActDim.Three, allowing core applications to run with native, lightweight System.Text.Json while offering legacy or custom Newtonsoft.Json integration when needed.
Features
ThreeNewtonsoftSerializer: High-level convenience helper forNewtonsoft.Jsonserialization and deserialization.SceneDocumentConverter: Custom NewtonsoftJsonConverterfor Three.js Object/Scene JSON format 4.BufferAttributeConverter: High-performance converter reading and writing typed primitive arrays (Float32Array,Uint32Array, etc.) without per-element object boxing.ElementConverter: Polymorphic discriminator converter for heterogeneous element pools (geometries,materials,textures,images).CamelCaseCustomResolver: Custom contract resolver preserving dictionary keys and camelCase property conventions.
Installation
Install via the .NET CLI:
dotnet add package ActDim.Three.NewtonsoftJson
Or via Package Manager Console:
Install-Package ActDim.Three.NewtonsoftJson
Quick Start Example
using ActDim.Three;
using ActDim.Three.NewtonsoftJson;
using ActDim.Three.Scenes;
// Create or obtain a scene document
Scene scene = new Scene();
SceneDocument doc = scene.ToSceneDocument();
// 1. Serialize using ThreeNewtonsoftSerializer
string json = ThreeNewtonsoftSerializer.ToJson(doc, indented: true);
// 2. Deserialize using ThreeNewtonsoftSerializer
SceneDocument restoredDoc = ThreeNewtonsoftSerializer.FromJson<SceneDocument>(json);
Testing & Quality
- Test Suite:
ActDim.Three.Tests - Target Framework: .NET 10.0
dotnet test Tests/Three.Tests/ActDim.Three.Tests.csproj
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- ActDim.Three (>= 1.0.10)
- Newtonsoft.Json (>= 13.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.