A
A
Alexander2018-12-14 22:04:40
Python
Alexander, 2018-12-14 22:04:40

How to write json python?

Such json

{
"12.2018": 
   {
   "16.12.2018": 123
   }
}

Depending on the month, you need to add either to the root or to the month.
I figured out the month and the check, the only question is before recording.
Can you tell me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lega, 2018-12-14
@lega

the simplest is to load, fix and save
json.load

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question