Hi all I am having a problem where I am getting this Json value from api
Json-
{
"level1":["a","b","c"],
"section":["a","b","c","d"],
"class":["a","b","c","d","e","f"],
"level2":["a","b"]
}
I need to re-arrage the level with value pair to a dropdown box in the format of
class
section
level1
level2
this is the filter method to get all filters
filter = () => {
return Object.keys(this.props.Filters);
};
I am able to fetch the details from API but unable to re-arrange can anyone help me out on how to do this, since I am a very beginner to this it would be helpfull.