Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

An output json field may be an array, such as: "customerCode": ["CustomerCode1"],

Current mapper does not support this output automatically. This is a guideline for work around in creating the desired output.

Instructions

  1. There are 2 ways to do the work around:

    1. Option1: def varArray0 = """["${var0}"]"""

      1. var0 is the input value, and varArray0 is the output value.

      2. We are “hardcoding” the brackets and quotes around the input value.

      3. This is acceptable if there is only 1 source/input value

    2. Option2:
      def varArray1 = []
      var1 = '"'+var1+'"'
      varArray1.add(var1.toString())

      1. var1 is the input value, and varArray1 is the output value

      2. We define varArray1 as an array/list

      3. We are “hardcoding” the quotes around the input value.

      4. This is useful if the input is a looping source field.

 

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.