L
L
lexstile2021-04-07 18:08:34
JSON
lexstile, 2021-04-07 18:08:34

What happens if you do not encode data in JSON?

I made a small service in react/php.
But then I just thought that usually the client / server communicates using JSON.

PHP -> json_encode($data) ---- JS -> JSON.parse(response)

What happens if this is not there, what if the data is given in the form in which it is - without conversion to a JSON string?
What are the pitfalls of this?

UPD:
I have this:
606dcc68be192275040671.png

If we use JSON, like this:
606dcc7fd8ddd338255265.png

Answer the question

In order to leave comments, you need to log in

Similar questions
K
kocherman2012-07-25 17:44:39
Is it possible to use such construction in html