JSON Tree Viewer
Note: This project utilizes the NuGet package Newtonsoft.(https://www.newtonsoft.com/json) also known as Json.NET
This tool takes XML generated by Reflect, converts that XML to JSON, and converts that JSON into a Tree Structure. The tree structure can be modified. After modification, the Tree Structure can be converted back into JSON, and this JSON is then passed on to a Rest API Documentation Website.
NOTE: Currently, the tool is not connected to the pipeline and does not interface with Reflect or Rest API. It also does not convert the Tree Structure back into JSON.
The tool currently runs in a windows form, and the XML is taken in as a text input. This will ideally be automated via interface. The text input does allow for corrections in the XML and JSON, although this would ideally be handled only in the Tree Structure. The conversions are handled via buttons. There is an option to convert XML to JSON, JSON, to Tree, and XML to Tree that handled both previous conversions at once.
The Tree Structure can be modified through four interactions: adding a node, deleting a node, changing the text in a node, or moving a node. The New Node button creates a new node at the root level, so the new node will not have a parent. The Del Node button deletes a highlighted node. Nodes can be highlighted by being clicked on. Deleting a node will also delete all of the child nodes. Renaming a node is done by double-clicking on a node. Moving a node is done through dragging a selected node and placing it on top of that node. The selected node will become a child of the node it is placed on top of, and it is always placed as the last child in that level.



Juan Farias 7:01 pm on August 29, 2019 Permalink |
@horstevans Nice stuff man! 🙂
LikeLike
Juan Farias 7:02 pm on August 29, 2019 Permalink |