Maps and Put ( ) Statements

  • Think of a “Map” as a way to specify what information should be piped into which specific fields in a certain module
  • map_name = Map(); Use this command to create it (nothing is in the parentheses because it is empty to begin with). You then use the “Put” function to fill the map
  • map_name.put(“field_APIname”, variable_name);
  • Use the above code to populate the map. In this case, we use the address variables we created above and place them into the Account address fields

JSON Viewer