U
U
user.2019-04-29 00:53:27
Python
user., 2019-04-29 00:53:27

What does this part of the code do?

There is a working script with this place:

var = json.dumps({"text123"})
var1 = json.loads(var)

First, json.dump() creates an object for us based on our passed Json,
then we get json from this object, which we save to the var1 variable?
What was the point of doing this .. serialize and then deserialize ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Proskurin, 2019-04-29
@Vlad_IT

Probably the author of this code did the cloning in this way.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question