Js Create Json Array Python Methods W3schools Mysqli Query