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.
ASKER
Hi michel,
I would like to mimic the the renderjson functionality in apidocs.
Thank you
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
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.
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.
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