---
title: "initFromData:applicationGroupIdentifier:error:"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/baassetpackmanifest/initfromdata:applicationgroupidentifier:error:"
---

# initFromData:applicationGroupIdentifier:error:

Initializes a representation of a manifest in memory from JSON-encoded data.

## Declaration

```occ
- (instancetype) initFromData:(NSData *) data applicationGroupIdentifier:(NSString *) applicationGroupIdentifier error:(NSError **) error;
```

## Parameters

- `data`: JSON-encoded data.
- `applicationGroupIdentifier`: The identifier of the application group in which to store unmanaged asset packs that are downloaded from the manifest.
- `error`: A pointer to an error that will be set if an error occurs.

## See Also

### Creating an asset pack manifest

- [initWithContentsOfURL:applicationGroupIdentifier:error:](backgroundassets/baassetpackmanifest/initwithcontentsofurl:applicationgroupidentifier:error:.md)
