Get info from Woocommerce checkout to Javascript function (JSon data)

Solution:

You need jQuery and for get values of input fields in json-format :

var values = JSON.stringify($('form[name="checkout"]').serializeArray());
console.log(values);

For productinformations & total you need to look at html objects content and put in a array and do like above “JSON.stringify”.

The objects can variate on different themes