Skip to content

Commit 06a2b15

Browse files
authored
gRPC: Document the special handling of non-numerical float values (#2020)
1 parent 3b49259 commit 06a2b15

File tree

1 file changed

+1
-0
lines changed
  • docs/sources/k6/next/using-k6/protocols

1 file changed

+1
-0
lines changed

docs/sources/k6/next/using-k6/protocols/grpc.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ It's important to note how k6 handles requests and messages. First, it tries to
263263
A limitation during this process is that the object you pass as a request/message must be serializable. That means structs like `Map` don't work.
264264

265265
The benefit of using `protojson` is the canonical JSON encoding support. The [Protocol Buffers documentation](https://protobuf.dev/programming-guides/proto3/#json) describes this mapping.
266+
Also note that according to [ProtoJSON docs](https://protobuf.dev/programming-guides/json/), the JSON value of a non-numeric float (e.g. `NaN` or `Infinity`) will be their equivalent string representation.
266267

267268
#### Examples
268269

0 commit comments

Comments
 (0)