Converting Json Object array Values to a single array
问题 Good day I am trying to use an autocomplete jquery framework.. buy my problem is how can i get my objects either from a json file or just a quick typed json object like the below and get all the Object.values(arry) to a single array like below.. ["samue", "anthon", "Harmony", "Johnson"] and must be an array.. because auto complete frameworks only works with arrays const myobj = [ { "name": "samuel", "surname": "anthony" }, { "name": "Harmony", "surname": "Johnson" } ] const file = "json/user