How to push JSON data without title in Javascript

I making a http.get() database get and push script. This script get url and getting data for me

var database = http.get('', function(res)/* and other codes etc: */)

var db = database[mydata()]  //my data is json.parse by url

var name = sirJohn
var password = worldbestpassword

db[].push({ [name] : [password] })


I need to push a Template literal to my JSON data but I had to use another function inside “db”. How can I push it?

note* : var db = {} like strings not very suitable

note2* : db.push() not working tho and I need template literal for my real code. It’s just an example

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.