Skip to content

Tag: json

Can I get a JSON object with name value?

I’m trying to make a Covid-19 tracker App by ReactJS. I want to get data that only an object (a specific province value) from JSON API with ProvinceChange event. Problem : I can’t get data that is only an object (a specific province value). what I tried : I tried a method filter using province.nam…

Remove data undefined in popup map Javascript

I have json data, and the data is displayed in a pop up on a map when there is a data that does not exist (Visibility), then the word undefined appears on the pop up How to remove undefined text, so that it gets deleted on the pop up? json data : script js : Pop Up : Help me,

How To Add JSON Value in Existed Nested JSON

its possible for add new value JSON to existed nested JSON ? My JSON its : I want move the “commision” nested to “data” like this : This my code for create JSON : Answer You can assign commission property in obj.data by using Object.assign() method and then remove the outer commission …

Using dropdown filter to dynamic update Highchart

currently I was trying to add a dropdown filter button on my chart to let users select a specific values from a data attribute and filter the related data shown on the chart. I populated my data’s attribute to the select unit, and I was trying to update the chart with parse the data from the selective v…