Bear Bibeault wrote:Are you talking about request parameters or the request body?
Both are always strings, but the body is interpreted by the content type mime type (in this case application/json).
For example, if the body represents a binary type (e.g. JPEG image), it'll be passed as the image data encoded as a string (base64 if I recall correctly).
JSON is a string. The mime type tells the receiver that the string in the body is to be interpreted as JSON.
Bear Bibeault wrote:Request parameters are always strings. So checking them as such isn't really checking anything.
This book is for experienced Java EE developers who are aspiring to become the architects of enterprise-grade applications, or software architects who would like to leverage Java EE to create effective blueprints of applications.
What You Will Learn
Junilu Lacar wrote:I don't want get into TDD too much here and digress from the original question of target audience so I will start another topic specifically about TDD.