Skip to content
Advertisement

How to format json so I can parse floats and strings

I am getting the error when I try to run the following code. I know it has something to do with the formating of the json file but I am not sure how to proceed/change in order to be able to get floats from the json file

JavaScript

my code

JavaScript

Advertisement

Answer

data['listingReducer']['geoCode'] is a dict so doing for location in data['listingReducer']['geoCode']gives you the keys

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement