Open source alternatives to react-json-pretty
200 open source apps like react-json-pretty, closest match first.
Top picks
- R
- V
vue-json-pretty
Launchvue-json-pretty is a Vue component that displays JSON as an interactive tree. It is easy to use, and it also supports selecting data within the tree. The project's demo site shows several usage scenarios, including a basic view, a virtual l
Open source
- R

react-vtree
Launchreact-vtree is a React component library for rendering large tree structures efficiently. It is built on top of react-window, which renders only the rows that are visible, so long trees stay responsive. It provides two components, FixedSize
Open source
- N
number-flow
LaunchNumberFlow is a React component that animates a number when its value changes. You render it with a value prop, and it transitions to the new number on its own. It formats numbers with Intl.NumberFormatOptions and locales, and it has prefix
- R

react-highlight
Launchreact-highlight is a React component for syntax highlighting, built on the highlight.js library. You pass a code snippet as the children of the Highlight component as a string, and set its language through a className, so the code is colour
Open source
- R

react-text-truncate
LaunchReact-Text-Truncate is a React component that shortens text to a set number of lines and adds an ellipsis when the text is too long. It is meant for multi-line truncation, so a paragraph or a card description can be cut to fit a fixed space
Open source
More like react-json-pretty

react-diff-viewer-continued
Continuation of a simple and beautiful text diff viewer component
About react-json-pretty

react-json-pretty
A code formatting tool for raw json data
react-json-pretty is a small React component that formats and prettifies JSON data for display in the browser. You pass it a data prop that holds either a JSON string or a plain JavaScript object. It is based on JSON.stringify, so it supports the same optional replacer and spacing parameters. Styling works in two ways: you can import one of its themes through a stylesheet loader such as css-loader in webpack, or use the theme prop, whose values are applied as inline styles on the target elements. You can also set custom styles for a specific value type, such as the padding of the main area or the font size of normal values. To catch parse problems, pass an onJSONPrettyError function, which receives the errors from JSON.parse. The README notes that objects which are not plain should be preprocessed with circular-json or a similar tool before they are passed in.
- Price
- Free
- Made by
- chenckang
- Category
- UI Libraries
- Website
- github.com/chenckang/react-json-pretty




















