What you respond from /users
is a JSON string instead of a JSON object, because of that plus the defaultContentType
of GetHttpClient
is 'application/json; charset=utf-8'
, you got null
in the Flutter client.
So instead of res.status(200).send(JSON.stringify(users, null, "\t"));
you could try respond the object directly res.status(200).send(users);