# December 21st, 2022

## Improvements

This release contains several different improvements mostly around the webhooks functionality.

### JSON5 Parser

Users commonly have issues with the JSON that gets sent to TradersPost. To improve this, we adopted a new JSON5 parser that makes the JSON that we accept a bit more flexible. For example, you can now have trailing commas in your JSON.

Before, this JSON was invalid:

```json5
{
    "ticker": "TSLA",
    "action": "buy",
}
```

Notice the trailing comma on the 3rd line. This would have caused a JSON error previously. Now it will be accepted as valid JSON. You can read more about JSON5 [here](https://json5.org/).

### JSON Parse Errors

Due to us adopting a new JSON5 parser, we are now able to provide more specific error messages to help you identify what is wrong with your JSON. We will try to point out the specific line and column where the error exists.

<figure><img src="https://1740217496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaGHqKUfUy1dxnpnFnAi%2Fuploads%2Fy6cRBXqnZfgKuXQQJwY2%2FScreen%20Shot%202022-12-27%20at%2010.09.55%20AM.png?alt=media&#x26;token=66a2d896-3d29-4cea-be13-a203e402809f" alt=""><figcaption><p>JSON Error</p></figcaption></figure>

### Notify Failures Only

You can now restrict notifications to only notify you of failures. If you go to your strategy subscription settings, you will see a Notifications section where you can setup your notifications.

<figure><img src="https://1740217496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaGHqKUfUy1dxnpnFnAi%2Fuploads%2FhelboEl4obCa432EzxmS%2FScreen%20Shot%202022-12-27%20at%2010.12.07%20AM.png?alt=media&#x26;token=cf7ef636-f554-42d6-8e09-de2ca0c822c1" alt=""><figcaption><p>Strategy Subscription Notification Settings</p></figcaption></figure>

### Webhook Notifications

You will now find a similar section when editing webhooks. You can configure notifications for new and failed webhooks or restrict to only failed webhooks by checking **Notify failures only**.

<figure><img src="https://1740217496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaGHqKUfUy1dxnpnFnAi%2Fuploads%2FRV9AknLVVvjM8cy9be3Y%2FScreen%20Shot%202022-12-27%20at%2010.14.51%20AM.png?alt=media&#x26;token=80e165cc-60a2-4d16-821f-73ad262a21ce" alt=""><figcaption><p>Webhook Notification Settings</p></figcaption></figure>

### Account Notification Settings

If you don't want to configure notification settings on each strategy subscription or webhook, under your Account Settings, you will see a new section for managing this.

<figure><img src="https://1740217496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaGHqKUfUy1dxnpnFnAi%2Fuploads%2FOq80vIxt3tf0HwpyVMza%2FScreen%20Shot%202022-12-27%20at%2010.16.54%20AM.png?alt=media&#x26;token=f8219782-c973-46bf-b3d4-f748874f62cf" alt=""><figcaption><p>Account Notification Settings</p></figcaption></figure>

### Copy Webhook URL

The copy button next to a webhook URL will actually copy the URL now without you having to copy the URL manually.

<figure><img src="https://1740217496-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfaGHqKUfUy1dxnpnFnAi%2Fuploads%2Fng27cKFf6nH29LtyeLY0%2FScreen%20Shot%202022-12-27%20at%2010.21.26%20AM.png?alt=media&#x26;token=6f69c960-9538-4051-a14d-0f26f2665eac" alt=""><figcaption></figcaption></figure>
