> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# json_to_data_tree class

**Namespace:** [Ans.DataProcessing.operators.serialization](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/serialization)

## Summary

Reads a json file or string to a DataTree

available inputs: `string_or_path` (string, DataSources)

available outputs: `data_tree` (DataTree)

## Example

```python theme={null}
op = json_to_data_tree()

op = json_to_data_tree(string_or_path=my_string_or_path)
```

## Class Information

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

## Inputs

### string\_or\_path

**Type:** *LinkableInput*

## Outputs

### data\_tree

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
json_to_data_tree()
```

#### Constructor

```python theme={null}
json_to_data_tree(string_or_path, config)
```

**Parameters:**

* `string_or_path` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
json_to_data_tree(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
