As the title, what kind of format will people use to encode body message for http2.0? I understand http2.0 has improved a lot on efficiency by binary encoding message header. How about message body such as application/json? Will it also become binary, e.g true or false value will only take one bit? number 200 will only take one byte instead of three ASCII chars?
I honestly don't know why we design JSON as textual format in the first place? Isn't binary format more efficient on storing number and boolean? If we use textual format, why we still say json has diverse data type: number, string, bool, array? What is the point of these data types since they are all just string and ascii encoded.
------------------------------------update-------------------------
After I successfully figure out how to create http2 server and how to use wireshark to decrypt the message. I realize the json is still encode using ascii not binary:
How to use wireshark to view encrypted application data between curl client and http2 server using PKCS12 key/cert
200 is still three bytes even using http2