¿Como mostrar este json que recibo en mi backend en mi fronted?
const express = require('express');
const wkd = require('steem');
var query = ['myusername'];
wkd.api.getAccounts(query, function(err, res) {
console.log(res);
});
lo que se recibe una vez ejecutado el programa.
JSON:
[ { id: 1689,
name: 'amar',
owner: { weight_threshold: 1, account_auths: [], key_auths: [Array] },
active: { weight_threshold: 1, account_auths: [], key_auths: [Array] },
posting: { weight_threshold: 1, account_auths: [], key_auths: [Array] },
memo_key: 'WKA7k6W6qXHj7bN2z1MLDiVexTwheUgjoFxH7HQbQZhz61uGiD8RD',
json_metadata: '{"profile":{"profile_image":"http://i67.tinypic.com/b67zgw.jpg","cover_image":"http://i66.tinypic.com/2vlv09y.gif","name":"Amar","about":"Join our discord : https://discord.gg/ffrE9BZ","location":"Nepal ","website":"https://whaleshares.io/@amar"}}',
proxy: '',
last_owner_update: '1970-01-01T00:00:00',
last_account_update: '2019-01-02T10:56:42',
created: '2018-09-05T09:58:06',
mined: false,
owner_challenged: false,
active_challenged: false,
last_owner_proved: '1970-01-01T00:00:00',
last_active_proved: '1970-01-01T00:00:00',
recovery_account: 'initminer',
last_account_recovery: '1970-01-01T00:00:00',
reset_account: 'null',
comment_count: 0,
lifetime_vote_count: 0,
post_count: 2554,
can_vote: true,
voting_power: 9011,
last_vote_time: '2019-01-22T17:21:21',
balance: '189.000 WEKU',
savings_balance: '150.000 WEKU',
sbd_balance: '584.897 WKD',
sbd_seconds: '447913370259',
sbd_seconds_last_update: '2019-01-22T17:18:51',
sbd_last_interest_payment: '2019-01-13T06:07:51',
savings_sbd_balance: '103.009 WKD',
savings_sbd_seconds: '0',
savings_sbd_seconds_last_update: '2018-10-24T04:15:45',
savings_sbd_last_interest_payment: '2018-10-24T04:15:45',
savings_withdraw_requests: 0,
reward_sbd_balance: '0.000 WKD',
reward_steem_balance: '0.000 WEKU',
reward_vesting_balance: '0.000000 VESTS',
reward_vesting_steem: '0.000 WEKU',
vesting_shares: '8798609765.450194 VESTS',
delegated_vesting_shares: '0.000000 VESTS',
received_vesting_shares: '9990297942.000000 VESTS',
vesting_withdraw_rate: '0.000000 VESTS',
next_vesting_withdrawal: '1969-12-31T23:59:59',
withdrawn: 0,
to_withdraw: 0,
withdraw_routes: 0,
curation_rewards: 37658275,
posting_rewards: 119042513,
proxied_vsf_votes: [ 0, 0, 0, 0 ],
witnesses_voted_for: 0,
average_bandwidth: '248433726146',
lifetime_bandwidth: '7054822000000',
last_bandwidth_update: '2019-01-22T17:21:21',
average_market_bandwidth: '66287432709',
lifetime_market_bandwidth: '1137240000000',
last_market_bandwidth_update: '2019-01-13T17:20:45',
last_post: '2019-01-22T16:33:09',
last_root_post: '2019-01-22T04:56:30',
vesting_balance: '0.000 WEKU',
reputation: '1788310326941346',
transfer_history: [],
market_history: [],
post_history: [],
vote_history: [],
other_history: [],
witness_votes: [],
tags_usage: [],
guest_bloggers: [] } ]
steemjs solo se ejecuta de lado de el server, entonces la res que recibo de la función quisiera saber como mostrarla en mi frontend?