# `GSGlyph propertyListValueFormat:error:`

*Instance Method*

A property-list representation in a Glyphs source format.

## Declaration

```swift
func propertyListValue(format: GSFormatVersion) throws -> [String : Any]
```

```objc
- (NSDictionary<NSString *,id> *) propertyListValueFormat:(GSFormatVersion) format error:(NSError **) error;
```

```python
propertyListValueFormat_error_(format: GSFormatVersion) -> tuple[dict[str, object], NSError]
```

## Parameters

- `format` — The source format used for the representation.
- `error` — On return, an error that prevented encoding.

## Discussion

Property-list encoding supports format 3 and later.

## See Also

### Encoding

- [`GSGlyph propertyListValueFormat:options:error:`](/Core/GlyphsCore/GSGlyph/propertyListValueFormat:options:error:) — A property-list representation using specified save options.
- [`GSGlyph saveToFile:format:context:error:`](/Core/GlyphsCore/GSGlyph/saveToFile:format:context:error:) — Writes the glyph in Glyphs source syntax to an open file.

