Skip to main content
The following example shows using the Copy from Sections computed method to flatten the output of nested and zipped sections. In this example, the config uses paired section groups nested in a parent section group to extract complete vehicle insurance declarations:
  1. A parent section group’s range contains the entire vehicle declaration.
  2. A child section group captures data such as the vehicle description and VIN.
  3. A child section group captures data such as the coverages and premiums:
Click to enlarge If you zip the child sections together, you can output something like the following example output, and then clean it up with the Copy From Sections method. The following uses abbreviated YML notation to give an overview of the more complex JSON API response:
YAML
In the preceding output, the zipped_vehicle-description_and_coverages field is unnecessary and results in a nested structure. This example shows simplifying the output, using the Copy From Sections method to produce something like the following:
JSON

Details

The following elaborates on the preceding overview using JSON instead of YML. Config
JSON
Example document The following image shows the example document used with this example config: Click to enlarge Output
JSON