JavaScript
Iterate through an object

by Benny Neugebauer

const json = {
  "BNBBTC": "0.00094630",
  "ETHBTC": "0.06082000",
  "LTCBTC": "0.01727900"
};

Object.keys(json).forEach((key) => {
  console.log(`Currency Pair "${key}", Price "${json[key]}"`);
});

const json = {
  "BNBBTC": "0.00094630",
  "ETHBTC": "0.06082000",
  "LTCBTC": "0.01727900"
};

for (const [key, value] of Object.entries(json)) {
  console.log(`Currency Pair "${key}", Price "${value}"`);
}