Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- json.forEach(function(element) {
- console.log(element.name);
- s = s + "*** " + element.name + " ***\ntype:" + element.type + "\npayable:" + element.payable + "\ninputs:\n";
- element.inputs.forEach(function(input) {
- s = s + "\t" + input.name + " | " + input.type + "\n";
- });
- s = s + "outputs:\n";
- if (element.outputs) {
- element.outputs.forEach(function(output) { s = s + "\t" + output.name + " | " + output.type + "\n"; });
- }
- });
Add Comment
Please, Sign In to add comment