diff --git a/stubs/api.php b/stubs/api.php
index <HASH>..<HASH> 100644
--- a/stubs/api.php
+++ b/stubs/api.php
@@ -106,7 +106,7 @@ return [
     'codecs' => [
         'encoders' => [
             'application/vnd.api+json',
-            'text/plain' => JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES,
+            'text/plain' => JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_PRESERVE_ZERO_FRACTION,
         ],
         'decoders' => [
             'application/vnd.api+json',
Ensures floats always encoded as float