Skip to main content

DPF Mechanical 2026 R1

data_tree_to_json class

Last update: 18.06.2026

Namespace: Ans.DataProcessing.operators.serialization

Summary

Writes a json file or string from a DataTree

available inputs: data_tree (DataTree), path (string) (optional)

available outputs: data_sources (DataSources ,string)

Example

op = data_tree_to_json()

op = data_tree_to_json(data_tree=my_data_tree,path=my_path)

Class Information

Property Value
Namespace Ans.DataProcessing.operators.serialization
Assembly Ans_Dpf_Native_dll_cs
Base Class Ans.DataProcessing.internal_objects.BaseOperator

Inputs

data_tree

Type: LinkableInput

path

Type: LinkableInput

Outputs

data_sources

Type: LinkableOutput

Constructors

Constructor

data_tree_to_json()

Constructor

data_tree_to_json(data_tree, path, config)

Parameters:

  • data_tree (object)
  • path (object)
  • config (OperatorConfig)

Constructor

data_tree_to_json(config)

Parameters:

  • config (OperatorConfig)

Methods

Properties

inputs

Type: InputSpec

# Get or set the property
value = obj.inputs
obj.inputs = new_value

outputs

Type: OutputSpec

# Get or set the property
value = obj.outputs
obj.outputs = new_value

defaultConfig

Type: Config

# Get the property (read-only)
value = obj.defaultConfig

Connect with Ansys