Previous version with Demo Video
How to use, add the script to your existing Debug component:
---
import { Debug } from 'astro:components';
---
<Debug json={{ myThing: 123 }} />
<script is:inline type="module" src="https://astro-debug-json.deno.dev"></script>
It will look like a normal Astro <Debug>
component but with the "view on json.pub" button that opens that json in https://json.pub/ by @levelsio.
Because data is sent over hash part of the URL the author of that service promises not to store your json in their logs (you can trust in that as much as you want I guess).