Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty print JSON on RPC payloads #978

Open
accordeiro opened this issue Aug 22, 2024 · 3 comments
Open

Pretty print JSON on RPC payloads #978

accordeiro opened this issue Aug 22, 2024 · 3 comments
Assignees

Comments

@accordeiro
Copy link
Member

We already pretty print JSON on the JSON<>XDR functionality.

Screenshot 2024-08-22 at 1 36 55 PM

I'd like to have the same monospaced, collapsible, syntax-highlighted JSON on RPC payloads, such as on this screen:

Screenshot 2024-08-22 at 1 37 48 PM

This will enable easier parsing / browsing of the API call that will be submitted.

@Shaptic
Copy link
Contributor

Shaptic commented Aug 22, 2024

@accordeiro if you want, you guys can wait until we release the next minor version of RPC which will let you get the responses as JSON by default via an xdrFormat: "json" parameter! 👍

@janewang
Copy link
Contributor

janewang commented Aug 23, 2024

@Shaptic I can't wait for the next version of the RPC with JSON! 🎉

This is the payload that's submitted to the RPC endpoint that we want to prettify. We should consistently prettify JSON in Lab

FYI cc @sdfcharles

@janewang
Copy link
Contributor

Discussed with @quietbits that we will change to pretty print without the toggle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo (Ready for Dev)
Development

No branches or pull requests

4 participants