I want to know what is the different between obj.attr
and obj["attr"]
.
Reasoning i am asking this question is, in one of the project i worked, we were invoking a post Rest API to send data in json format. Every time we used obj["attr"]
to prepare json request and send to* backend server (gunicorn)*, Server replied with HTTP 500 291 error code. and when used obj.attr=value
to prepare json request it worked.
when i replaced backend server of gunicorn with nodejs/SOAP Mockserver it worked