> ## 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.

# Method WriteJson

Namespace: [Phoenix.PlugIns](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.PlugIns)\
Assembly: Phoenix.PlugIns.dll

## WriteJson(IEnumerable\<PlugInInfo>)

Writes a list of PlugInInfo objects into a JSON string. Defaults
to human readable (indented)

```csharp theme={null}
public static string WriteJson(IEnumerable<PlugInInfo> infos)

```

### Parameters

`infos` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[PlugInInfo](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.PlugIns.PlugInInfo)>

The PlugInInfo objects to write

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string containing the JSON

## WriteJson(IEnumerable\<PlugInInfo>, Formatting)

Writes a list of PlugInInfo objects into a JSON string.

```csharp theme={null}
public static string WriteJson(IEnumerable<PlugInInfo> infos, Formatting formatting)

```

### Parameters

`infos` [IEnumerable](https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)\<[PlugInInfo](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/apidocs/Phoenix.PlugIns.PlugInInfo)>

The PlugInInfo objects to write

`formatting` Formatting

The JSON formatting to use

### Returns

[string](https://learn.microsoft.com/dotnet/api/system.string)

A string containing the JSON
