# How to print struct with strings

**URL:** <https://ziggit.dev/t/how-to-print-struct-with-strings/1597>\
**Category:** Help\
**Tags:** standard-library\
**Created:** [August 25, 2023, 2:57pm UTC](https://ziggit.dev/t/how-to-print-struct-with-strings/1597 "2023-08-25T14:57:46Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![marler8997](https://ziggit.dev/user_avatar/ziggit.dev/marler8997/32/77_2.png) [@marler8997](https://ziggit.dev/u/marler8997)\
**Post date:** [August 31, 2023, 6:05pm UTC](https://ziggit.dev/t/how-to-print-struct-with-strings/1597/10 "2023-08-31T18:05:19Z")

</div>

Brilliant idea. We could make this even more convenient by adding a JsonFormatter in the std library, i.e.

```
std.log.info("response is {}", .{std.json.fmt(response)});

```

---

_[View the full topic](https://ziggit.dev/t/how-to-print-struct-with-strings/1597)._
