How to print JSON data in console.log?

console.log(JSON.stringify(data)) will do what you need. I’m assuming that you’re using jQuery based on your code.

If you’re wanting those two particular values, you can just access those and pass them to log.

console.log(data.input_data['quantity-row_122']); 
console.log(data.input_data['price-row_122']); 

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)