<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/Transaction/jsonRepresentation",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "s:8StoreKit11TransactionV18jsonRepresentation10Foundation4DataVvp"
  },
  "title" : "jsonRepresentation"
}
-->

# jsonRepresentation

The JSON representation of the transaction information.

```
var jsonRepresentation: Data { get }
```

## Discussion

The [`jsonRepresentation`](/documentation/StoreKit/Transaction/jsonRepresentation) is UTF-8 string data that has the same JSON schema as the <doc://com.apple.documentation/documentation/AppStoreServerAPI/JWSTransactionDecodedPayload> object. You can use this data to decode the transaction information into your own data type instead of using the [`Transaction`](/documentation/StoreKit/Transaction) value and its [Transaction properties](/documentation/StoreKit/transaction-properties) directly.

The JSON Web Signature (JWS) Compact Serialization for the transaction is available in the [`jwsRepresentation`](/documentation/StoreKit/VerificationResult/jwsRepresentation-21vgo) property of the [`VerificationResult`](/documentation/StoreKit/VerificationResult). The JWS string consists of three Base64URL-encoded components, separated by a period: a header, a payload, and a signature. The [`jsonRepresentation`](/documentation/StoreKit/Transaction/jsonRepresentation) is the Base64URL-decoded payload component.

> Note:
> If you send the transaction to your server or store it, use the ``doc://com.apple.storekit/documentation/StoreKit/VerificationResult/jwsRepresentation-21vgo`` and validate the signature before parsing it.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)