# ParsedResultItem Class

The `ParsedResultItem` class represents a parsed result item generated by code parser engine.

## Definition

*Namespace:* Dynamsoft.DCP


*Inheritance:* [CapturedResultItem](https://www.dynamsoft.com/capture-vision/docs/server/programming/dotnet/api-reference/core/basic-classes/captured-result-item.md) -> ParsedResultItem

```csharp
public class ParsedResultItem : CapturedResultItem
```

## Methods

  | Method               | Description |
  |----------------------|-------------|
  | [`GetCodeType`](#getcodetype) | Gets the code type of the parsed result. |
  | [`GetFieldValue`](#getfieldvalue) | Gets the value of a specified field from the parsed result. |
  | [`GetFieldRawValue`](#getfieldrawvalue) | Gets the raw value of a specified field from the parsed result. |
  | [`GetFieldMappingStatus`](#getfieldmappingstatus) | Gets the mapping status of a specified field from the parsed result. |
  | [`GetFieldValidationStatus`](#getfieldvalidationstatus) | Gets the validation status of a specified field from the parsed result. |
  | [`GetJsonString`](#getjsonstring) | Gets the parsed result as a JSON formatted string. |
  | [`GetFieldCount`](#getfieldcount) | Gets the total number of parsed fields. |
  | [`GetFieldName`](#getfieldname) | Gets the name of a specific parsed field by its index. |

### GetCodeType

Gets the code type of the parsed result.

```csharp
string GetCodeType()
```

**Return Value**

Returns a string value representing the code type.

### GetFieldValue

Gets the value of a specified field from the parsed result.

```csharp
string GetFieldValue(string fieldName)
```

**Parameters**

`[in] fieldName` The name of the field.

**Return Value**

Returns a string representing the specified field value.

### GetFieldRawValue

Gets the raw value of a specified field from the parsed result.

```csharp
string GetFieldRawValue(string fieldName)
```

**Parameters**

`[in] fieldName` The name of the field.

**Return Value**

Returns a string representing the specified field raw value.

### GetFieldMappingStatus

Gets the mapping status of a specified field from the parsed result.

```csharp
EnumMappingStatus GetFieldMappingStatus(string fieldName)
```

**Parameters**

`[in] fieldName` The name of the field.


**Return Value**

Returns an `EnumMappingStatus` value representing the mapping status of a specified field.

**See Also**

[EnumMappingStatus](https://www.dynamsoft.com/code-parser/docs/server/programming/dotnet/api-reference/enum-mapping-status.md)

### GetFieldValidationStatus

Gets the validation status of a specified field from the parsed result.

```csharp
EnumValidationStatus GetFieldValidationStatus(string fieldName)
```

**Parameters**

`[in] fieldName` The name of the field.

**Return Value**

Returns an `EnumValidationStatus` value representing the validation status of a specified field.

**See Also**

[EnumValidationStatus](https://www.dynamsoft.com/code-parser/docs/server/programming/dotnet/api-reference/enum-validation-status.md)

### GetJsonString

Gets the parsed result as a JSON formatted string.

```csharp
string GetJsonString()
```

**Return Value**

Returns a JSON formatted string representing the full parsed result.

## GetFieldCount

Gets the total number of parsed fields.

```csharp
int GetFieldCount()
```

**Return Value**

Returns an integer representing the count of parsed fields.

## GetFieldName

Gets the name of a specific parsed field by its index.

```csharp
string GetFieldName(int index)
```

**Parameters**

`[in] index` The index of the parsed field.

**Return Value**

Returns a string representing the specified field name. 

If the field is nested, the name includes all parent fields, separated by a dot (.). The format follows this pattern: <root_field>[.<child_field1>[.<child_field2>...]]
