Sorry for the delay.

To avoid ValueError when string literals in the JSON data use newlines control characters but we can remove it really because it shouldn't be valid JSON data anyway and BitBucket is really sending valid formatted JSON data.