diff --git a/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/ShowItemSerializer.java b/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/ShowItemSerializer.java
index <HASH>..<HASH> 100644
--- a/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/ShowItemSerializer.java
+++ b/text-serializer-gson/src/main/java/net/kyori/adventure/text/serializer/gson/ShowItemSerializer.java
@@ -91,12 +91,14 @@ final class ShowItemSerializer extends TypeAdapter<HoverEvent.ShowItem> {
 
     final int count = value.count();
     if(count != 1) {
-      out.name(COUNT).value(count);
+      out.name(COUNT);
+      out.value(count);
     }
 
     final @Nullable BinaryTagHolder nbt = value.nbt();
     if(nbt != null) {
-      out.name(TAG).value(nbt.string());
+      out.name(TAG);
+      out.value(nbt.string());
     }
 
     out.endObject();
Write more kashike-compliant code