Une image contenant texte, signe

Description générée automatiquement

Exporting to JSON

 

Overview

Allows exporting of model data into a JSON file. 

 

Applicable To

Project,Package

Menu Entry

Power Pack JSON Tools Export to JSON

 

Exporting to JSON may be performed on:

·       The Project

·       A Package*

·       Multiple (selected) Packages*

 

If no element is selected or a non-package element is selected, then the export is produced from the project.

 

The exported JSON file is created in the project folder and is named either [Project Name].json or [Selected Element].json depending on the current selection.

 

*Note that if only selected package(s) are exported, the exporter automatically creates a root ‘project’ node and adds the selected packages as child nodes to it. 

 

See JSON Data Format for details on how each model element is represented. Note that the exporter creates complete JSON objects for each model element and so may include fields that are not necessary for import (for example all messages on a sequence diagram in Rhapsody have a source and a target and those will be fields in the exported JSON Message but for ‘special’ messages such as timeouts, the source is not required as the importer can infer that from the target).

Export Options

 

The following options may be set using properties. These properties are read from the selected package is a single package is selected, or from the project in all other cases.

 

Opening the Generated File

To open the file automatically after generation in the current system editor registered for .json files, set the following property to true:

RhapsodyPowerPack.JsonTools.AutomaticallyOpenExportedFile

 

Including GUIDs

To include guids in the exported data, set the following property to true:

RhapsodyPowerPack.JsonTools.ExportGUIDs