```
## What's Different?
Instead of trying to preserve JSON brackets, this code:
1. Checks if the metafield contains "usa", "canada", etc.
2. Builds the correct array string based on what it finds
3. Outputs raw (unescaped) JSON
## Test It:
After saving, click a badge and check the console. You should see:
```
Available variants for usa : Array(X) // Where X > 0
```
## What's Different?
Instead of trying to preserve JSON brackets, this code:
1. Checks if the metafield contains "usa", "canada", etc.
2. Builds the correct array string based on what it finds
3. Outputs raw (unescaped) JSON
## Test It:
After saving, click a badge and check the console. You should see:
```
Available variants for usa : Array(X) // Where X > 0
```
## What's Different?
Instead of trying to preserve JSON brackets, this code:
1. Checks if the metafield contains "usa", "canada", etc.
2. Builds the correct array string based on what it finds
3. Outputs raw (unescaped) JSON
## Test It:
After saving, click a badge and check the console. You should see:
```
Available variants for usa : Array(X) // Where X > 0