[sqlalchemy] Re: Flask API returns JSON but gives an error in React: Error: Objects are not valid as a React child

2020-08-20 Thread Dale Preston
I just realized I posted this in sqlalchemy but it's a React issue. Sorry for the confusion. I'll find an appropriate React group somewhere. Dale On Thursday, August 20, 2020 at 1:23:22 PM UTC-5 Dale Preston wrote: > Just more info; if I change res => res.json() to res => res.text(), I get >

[sqlalchemy] Re: Flask API returns JSON but gives an error in React: Error: Objects are not valid as a React child

2020-08-20 Thread Dale Preston
Just more info; if I change res => res.json() to res => res.text(), I get the json as text. *{ "users": [ { "emailaddress": "bobsm...@somedomain.com", "firstname": "Bob", "lastname": "Smith", "userid": "bsmith" }, { "emailaddress": "tomjones @otherdomain.com", "firstname": "Tom", "lastname": "J