Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
    <DFS.JSS.FieldSerializer>
      <property outputName="assetTypeId" propertyName="AssetTypeId" />
      <property outputName="title" propertyName="Name" />
      <quality outputName="src" />
      <quality outputName="src_download" download="true" />      
    </DFS.JSS.FieldSerializer>

This is an eaxample example of the out for the fieldtype asset:.

Code Block
languagejson
 "DFS Medie": {
    "value": {
      "assetTypeId": 4,
      "title": "Butterfly",
      "src": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/butterfly",
      "src_download": "/dfsmedia/baeefe6b74df44be8a2bccfb2c57af8e/114-50036/options/download/butterfly"
    }
}

Configuration

The section <DFS.JSS.FieldSerializer> can contain 2 different types tags property and quality.

The following attributes are avaible for the Property tag:

  • outputName
    This is the property name of the json output.

  • propertyName
    650

  • delimiter
    This is used for properties with multiple values. The default delimiter is semicolon.

The following attributes are avaible for the Quality tag:

  • outputName
    This is the property name of the json output.

  • qualityId

  • download

Examples