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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ActDim.Three.NewtonsoftJson" Version="1.0.10" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ActDim.Three.NewtonsoftJson" Version="1.0.10" />
                    
Directory.Packages.props
<PackageReference Include="ActDim.Three.NewtonsoftJson" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ActDim.Three.NewtonsoftJson --version 1.0.10
                    
#r "nuget: ActDim.Three.NewtonsoftJson, 1.0.10"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ActDim.Three.NewtonsoftJson@1.0.10
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ActDim.Three.NewtonsoftJson&version=1.0.10
                    
Install as a Cake Addin
#tool nuget:?package=ActDim.Three.NewtonsoftJson&version=1.0.10
                    
Install as a Cake Tool

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 for Newtonsoft.Json serialization and deserialization.
  • SceneDocumentConverter: Custom Newtonsoft JsonConverter for 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.10 38 8/26/2026
1.0.9 42 8/25/2026