JSFiddle - React, Tailwind, and code Playground
by kkdaily
JavaScript
var ugh = JSON.parse("{\"resource\":\"/invoice-payment-failed\",\"path\":\"/invoice-payment-failed\",\"httpMethod\":\"POST\",\"headers\":{\"Accept\":\"*/*; q=0.5, application/xml\",\"Cache-Control\":\"no-cache\",\"CloudFront-Forwarded-Proto\":\"https\",\"CloudFront-Is-Desktop-Viewer\":\"true\",\"CloudFront-Is-Mobile-Viewer\":\"false\",\"CloudFront-Is-SmartTV-Viewer\":\"false\",\"CloudFront-Is-Tablet-Viewer\":\"false\",\"CloudFront-Viewer-Country\":\"US\",\"Content-Type\":\"application/json; charset=utf-8\",\"Host\":\"ovrhajpldl.execute-api.us-east-1.amazonaws.com\",\"Stripe-Signature\":\"t=1561042421,v1=d0f2364546b33f6da4e11bfd0d43b4ba9e9bb40f9a18fe7f48e11ade72a97ba0,v0=ba1b8cd2747cbd3fdf18974b90291c5946d32c11a245c3b5e8fdfa39e9984e46\",\"User-Agent\":\"Stripe/1.0 (+https://stripe.com/docs/webhooks)\",\"Via\":\"1.1 58b224f0fcba4846d5699ecad6c6829f.cloudfront.net (CloudFront)\",\"X-Amz-Cf-Id\":\"rU394pAxixLcCX1GQbxWvlxiaAtlkIu2KsFkexaogAgJxMoZodKQzw==\",\"X-Amzn-Trace-Id\":\"Root=1-5d0b9df6-6c849208073987f05275b2d8\",\"X-Forwarded-For\":\"54.187.205.235, 52.46.17.73\",\"X-Forwarded-Port\":\"443\",\"X-Forwarded-Proto\":\"https\"},\"multiValueHeaders\":{\"Accept\":[\"*/*; q=0.5, application/xml\"],\"Cache-Control\":[\"no-cache\"],\"CloudFront-Forwarded-Proto\":[\"https\"],\"CloudFront-Is-Desktop-Viewer\":[\"true\"],\"CloudFront-Is-Mobile-Viewer\":[\"false\"],\"CloudFront-Is-SmartTV-Viewer\":[\"false\"],\"CloudFront-Is-Tablet-Viewer\":[\"false\"],\"CloudFront-Viewer-Country\":[\"US\"],\"Content-Type\":[\"application/json; charset=utf-8\"],\"Host\":[\"ovrhajpldl.execute-api.us-east-1.amazonaws.com\"],\"Stripe-Signature\":[\"t=1561042421,v1=d0f2364546b33f6da4e11bfd0d43b4ba9e9bb40f9a18fe7f48e11ade72a97ba0,v0=ba1b8cd2747cbd3fdf18974b90291c5946d32c11a245c3b5e8fdfa39e9984e46\"],\"User-Agent\":[\"Stripe/1.0 (+https://stripe.com/docs/webhooks)\"],\"Via\":[\"1.1 58b224f0fcba4846d5699ecad6c6829f.cloudfront.net...