Export Structure to JSON
409
Views
4
Comments
New
Service Studio

The Problem

I mostly create Structures for integration purposes, for both incoming and outgoing purposes. This structure is something that will be produces or consumed by an external party (mostly some other internal department). Before we start to actually develop the Integration logic we normally first want to agree about the data structure and our default documentation/negotiation format is JSON. 

Currently it's "hard" to get a JSON object from a structure defined in OutSystems. I either need to create a Server Action with a "JSON Serialize" action to convert the Structure to JSON and debug this action to grab the JSON or I need to add the structure as an input object to a REST action and open the Swagger documentation to copy the JSON from there. This main issue with this is, is that it's time consuming and initiate publishes which might not be needed/wanted at that time.


The Solution

Let me export the structure to JSON via the context menu of the Structure. This is a similar action as "Add Structure from JSON" but the other way around. The result should be similar with the Swagger JSON. 

With this addition I could create a Structure, export it and share it without all the hassle of creating Server Actions or REST action.  

Check the screenshot below on the context menu in question. The "Export to JSON" should be somewhere in here. 


Changed the category to
Service Studio

Like this! Encountered the same 'issue' today. We would like to have a look at the json structure that we created, so now we just created a mock rest API so we could look at it in the documentation of the API. It would be nice to do it directly from Service Studio.

Merged this idea with 'Structures - JSON' (created on 16 Aug 2021 08:38:30 by Alexandrino Galveia)

Now that is possible to import a structure from a JSON file, it will be nice to have the ability to export an existing structure to a JSON file.



This comment was:
- originally posted on idea 'Structures - JSON' (created on 16 Aug 2021 by Alexandrino Galveia)
- merged to idea 'Export Structure to JSON' on 28 Sep 2021 14:04:51 by Kilian Croese
2025-05-31 09-56-11
TheSubuIyer
Champion

Yes this is a much needed feature !! We need this yesterday! :-)