skip to Main Content

Json – Object to array bug

So I wrote this function to convert an object to an array. Function: function objectToArray(obj) { const result = []; for (const [key, value] of Object.entries(obj)) { if (typeof value === 'object' && value !== null) { result[key] = objectToArray(value);…

VIEW QUESTION

turning the json result into dynamic

i have a very complicated issue for a beginner. firstly I have this result from json { "success": true, "timeframe": true, "start_date": "2018-01-01", "end_date": "2018-01-05", "source": "TRY", "quotes": { "2018-01-01": { "TRYEUR": 0.21947 }, "2018-01-02": { "TRYEUR": 0.220076 }, "2018-01-03":…

VIEW QUESTION
Back To Top
Search