N
N
noname_1112021-01-10 01:49:48
JSON
noname_111, 2021-01-10 01:49:48

How can I get certain keys using the JSON.parse method?

There is a line: "{\"settings\":{\"sw\":\"AUTO\",\"day_in\":{\"begin\":0,\"end\":0},\" reg\":[{\"day_s\":50,\"day_ob\":0,\"night_s\":50,\"night_obj\":0,\"bo_left\":{\"x\" :0,\"y\":0},\"top_r\":{\"x\":1,\"y\":1},\"id\":0}],\"mode\ ":\"always_on\",\"audibled\":false,\"sched\":{\"type\":\"ENABLES\",\"epoch_rec\":[],\"weekly_r\": []}},\"updated_at\":\"2000-12-24T14:02:01.829246Z\"}\n".
How to use json.parse to print only mode, day_s and night_s values?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question