# ParsedResultItem Class

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

## Definition

*Package:* com.dynamsoft.dcp

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

```java
public class ParsedResultItem extends 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. |
| [`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. |
| [`getFieldRawValue`](#getfieldrawvalue) | Gets the raw string of a specified field from the parsed result. |
| [`getFieldCount`](#getfieldcount) | Gets the count of parsed fields. |
| [`getFieldName`](#getfieldname) | Gets the name of a field at the specified index. |

### getCodeType

Gets the code type of the parsed result.

```java
public String getCodeType()
```

**Return Value**

Returns a string value representing the code type.

### getFieldValue

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

```java
public String getFieldValue(String fieldName)
```

**Parameters**

`fieldName` The name of the field.

**Return Value**

Returns a string representing the specified field value.

### getFieldMappingStatus

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

```java
public @EnumMappingStatus int getFieldMappingStatus(String fieldName)
```

**Parameters**

`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/java/api-reference/enum-mapping-status.md)

### getFieldValidationStatus

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

```java
public @EnumValidationStatus int getFieldValidationStatus(String fieldName)
```

**Parameters**

`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/java/api-reference/enum-validation-status.md)

### getJsonString

Gets the parsed result as a JSON formatted string.

```java
public String getJsonString()
```

**Return Value**

Returns a JSON formatted string representing the full parsed result.

### getFieldRawValue

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

```java
public String getFieldRawValue(String fieldName)
```

**Parameters**

`fieldName` The name of the field.

**Return Value**

Returns a string representing the specified field raw string.

### getFieldCount

Gets the count of parsed fields.

```java
public int getFieldCount()
```

**Return Value**

Returns an integer representing the count of parsed fields.

### getFieldName

Gets the name of a field at the specified index.

```java
public String getFieldName(int index)
```

**Parameters**

`index` The index of the field.

**Return Value**

Returns a string representing the field name at the specified index.

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