Link to home
Start Free TrialLog in
Avatar of Zack
ZackFlag for Australia

asked on

Render JSON into collapsible HTML in ApiDocs

Hi EE,


Does anyone know of a method to render the JSON output using https://apidocjs.com/ into a collapsible tree structure? Like the way this library does http://caldwell.github.io/renderjson/


Any assistance is appreciated.


Thank you. 



Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Hi
It is not clear what you need.
What JSON?
Do you want to mimic the renderjson but use it in the apidocs?
What is input and expected output?

thanks
Avatar of Zack

ASKER

Hi michel,


I would like to mimic the the renderjson functionality in apidocs.

 

Thank you



"What is input and expected output?"
Avatar of Zack

ASKER

Hi Michel,


Don't have expected input or output I want the ability to collapse JSON data, for instances when I am documenting successful responses; https://apidocjs.com/#param-api-success-example as some of the successful responses I have are quite large, 500+ lines. I would like the ability to render that JSON in a collapsible format in the Apidocs framework if that makes sense.


Thank you.   



ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Zack

ASKER

Hi Michel,


Cheers for the link found a reference to another project that achieves most of what I need: 


https://github.com/rigwild/apidoc-markdown


Thank you. 





You are welcome, but I did not actually answer your question, just tried to point you in some direction
Avatar of Zack

ASKER

Hi Michel,


A fair point, but that direction has led me to a very handy GitHub repository. 


And you responded to my rather unclear question which is points in itself.


Cheers. 

Very well. Glad to be of some service