---
title: StructuredValue
framework: evaluations
role: symbol
role_heading: Enumeration
path: evaluations/structuredvalue
---

# StructuredValue

A type-safe representation of JSON values.

## Declaration

```swift
enum StructuredValue
```

## Overview

Overview let name: StructuredValue = "Alice" let score: StructuredValue = 4.5 let tags: StructuredValue = ["swift", "evaluation"] This type is not @Generable due to its recursive array/dictionary structure. For generable argument specifications, use ArgumentValue instead.

## Topics

### Primitive values

- [StructuredValue.string(_:)](evaluations/structuredvalue/string(_:).md)
- [StructuredValue.int(_:)](evaluations/structuredvalue/int(_:).md)
- [StructuredValue.double(_:)](evaluations/structuredvalue/double(_:).md)
- [StructuredValue.bool(_:)](evaluations/structuredvalue/bool(_:).md)
- [StructuredValue.null](evaluations/structuredvalue/null.md)

### Collection values

- [StructuredValue.array(_:)](evaluations/structuredvalue/array(_:).md)
- [StructuredValue.dictionary(_:)](evaluations/structuredvalue/dictionary(_:).md)

### Accessing the underlying value

- [value](evaluations/structuredvalue/value.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [ExpressibleByBooleanLiteral](swift/expressiblebybooleanliteral.md)
- [ExpressibleByDictionaryLiteral](swift/expressiblebydictionaryliteral.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting types

- [ArgumentValue](evaluations/argumentvalue.md)
