0.0.6 • Published 7 years ago

json-html-viewer v0.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

json-html-viewer

simple react json html viewer render json data into html

install

yarn add json-html-viewer

usage

    import JsonHtmlViewer from 'json-html-viewer';
    import ReactDom from 'react-dom';
    
    ReactDom.render(
    	<JsonHtmlViewer json={ {
                "glossary": {
                    "title": "example glossary",
                    "GlossDiv": {
                        "title": "S",
                        "GlossList": {
                            "GlossEntry": {
                                "ID": "SGML",
                                "SortAs": "SGML",
                                "GlossTerm": "Standard Generalized Markup Language",
                                "Acronym": "SGML",
                                "Abbrev": "ISO 8879:1986",
                                "GlossDef": {
                                    "para": "A meta-markup language, used to create markup languages such as DocBook.",
                                    "GlossSeeAlso": ["GML", "XML"]
                                },
                                "GlossSee": "markup"
                            }
                        }
                    }
                }
               } }/>,document.body
    )
    

result

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago