---
title: "Discussion on \"Borsh to JSON in Rust using only schemas\" | Hashnode"
description: "Discussion on \"Borsh to JSON in Rust using only schemas\". tl;dr\nUse this utility to generate a binary schema file from a Rust struct that implements the BorshSchema trait. Then using the schema file, easily convert to and from JSON and Borsh. No code generation needed.\nSource\nhttps://github.com/wkennedy/bor..."
url: "https://hashnode.com/posts/borsh-to-json-in-rust-using-only-schemas/64f7e576ba31450481798c0c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Borsh to JSON in Rust using only schemas](https://brytelands.hashnode.dev/borsh-to-json-in-rust-using-only-schemas?utm_source=hashnode&utm_medium=feed)

tl;dr Use this utility to generate a binary schema file from a Rust struct that implements the BorshSchema trait. Then using the schema file, easily convert to and from JSON and Borsh. No code generation needed. Source https://github.com/wkennedy/bor...

Sep 3, 2023 · 4 min read · brytelands.hashnode.dev  
Read the article

-   [#json](https://hashnode.com/tag/json)
-   [#rust](https://hashnode.com/tag/rust)
-   [#serialization](https://hashnode.com/tag/serialization)
-   [#borsh](https://hashnode.com/tag/borsh)

## Written by

[Will Kennedy](https://hashnode.com/@wkennedy)

@wkennedy · Grenada

  
[View profile](https://hashnode.com/@wkennedy)

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
