Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is json option? #257

Closed
iveetoo opened this issue Jul 19, 2016 · 15 comments
Closed

What is json option? #257

iveetoo opened this issue Jul 19, 2016 · 15 comments
Labels
question Question about functionality

Comments

@iveetoo
Copy link

iveetoo commented Jul 19, 2016

Hi, is there more information about the json option and the outputed json file? How can I use it to generate documentation?

@aciccarello
Copy link
Collaborator

I believe the json option allows you to serialize your parsed project documentation to a file. I think the idea is to use the parsed documentation in other tools.

@iveetoo
Copy link
Author

iveetoo commented Jul 22, 2016

Can you give me an example of such tool, that consumes json and produces documentation?

@aciccarello
Copy link
Collaborator

I'm not sure who's using it right now.

@FlippieCoetser
Copy link
Contributor

We used the JSON output to create UML Diagrams in GenMyModel. Transpile the JSON output to XMI 2.1 (UML Structured in XML format) and then import that into GenMyModel. Creating the transpiler was a pain due to the limited documentation but we succeeded. Thanks to @gronke!

@sergiusignacius
Copy link

sergiusignacius commented Aug 4, 2016

Is there a definition (e.g. d.ts declaration) that serves as a schema for the generated file? I'm interested in creating a tool in Typescript that consumes this output, but the generated JSON is a monster of a file.

EDIT:
Either that or a format that is easier to consume...

@ericjim
Copy link

ericjim commented Nov 15, 2016

I would like the option of generating a JSON file that my app can consume. I would also like the ability to stop generating HTML files in this case.

@aciccarello aciccarello added the question Question about functionality label Feb 3, 2017
@ssokolow
Copy link

@sergiusignacius While it's not perfect, I usually find GenSON helpful in situations like that.

@Tiberriver256
Copy link

@FlippieCoetser did you have your code for conversion from json to XMI out somewhere? That would be pretty useful.

@FlippieCoetser
Copy link
Contributor

@Tiberriver256 @gronke and I are just checking if any private info is contained in the code. Once done we will post the link to the code here. When we developed the transpiler typescript was still at an older level which means some of the new features are not covered. but at least you will be able to see the approach we took.

@FlippieCoetser
Copy link
Contributor

@Tiberriver256 this is the repo for the code. https://github.com/gronke/TypeDoc-GenMyModel-Transpiler
@gronke will open source the code shortly.

@danbars
Copy link

danbars commented Nov 13, 2017

@FlippieCoetser the link to the repo is broken. Did you open it?
Would also love to see it.
Thanks!

@FlippieCoetser
Copy link
Contributor

@danbars @gronke will open the package. We removed all privacy info. so it is ready to go. A lot has changed since we last used the transpiler. but it might still give you a direction to work from.

@gronke
Copy link

gronke commented Nov 13, 2017

@danbars @Tiberriver256 there you go: gronke/TypeDoc-GenMyModel-Transpiler

@Tiberriver256
Copy link

@FlippieCoetser @gronke Thanks guys!

@danbars
Copy link

danbars commented Nov 14, 2017

Thank you @FlippieCoetser and @gronke

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

9 participants