Guest User

Untitled

a guest
Dec 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. json.forEach(function(element) {
  2. console.log(element.name);
  3. s = s + "*** " + element.name + " ***\ntype:" + element.type + "\npayable:" + element.payable + "\ninputs:\n";
  4. element.inputs.forEach(function(input) {
  5. s = s + "\t" + input.name + " | " + input.type + "\n";
  6. });
  7. s = s + "outputs:\n";
  8. if (element.outputs) {
  9. element.outputs.forEach(function(output) { s = s + "\t" + output.name + " | " + output.type + "\n"; });
  10. }
  11. });
Add Comment
Please, Sign In to add comment