
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-json-component
Advanced tools
React component that allows you to render JSON documents or serializable JavaScript objects written with TypeScript.
React component that allows you to render JSON documents or serializable JavaScript objects written with TypeScript.
Read a blog post about it below: Recursive rendering in React: Building a universal JSON renderer
npm install react-json-component in your React projectimport ReactJsonRenderer from 'react-json-component' in your appNOTE: Currently only supports ES6 modules
import * as React from 'react';
import RecursiveComponent from 'react-json-component';
const testJson = {
"_id": "5bc32f3f5fbd8ad01f8265fd",
"objectWithNulls": {
"firstNullValue": null,
"secondNullValue": null
},
"longitude": 65.090852,
"tags": [
"ea",
"officia",
],
"friends": [
{
"id": 0,
"name": "Genevieve Cooke",
"ownFriends": {
"1": "Rebbeca",
"2": "Julia",
"3": "Chopper only"
},
},
{
"id": 1,
"name": "Eaton Buck"
}
]
};
class App extends React.Component {
public render() {
return (
<div className="App">
<RecursiveComponent
property={testJson}
propertyName="Root Property"
excludeBottomBorder={false}
rootProperty={true}/>
</div>
);
}
}
<RecursiveProperty
property={json} // your JSON document
propertyName="root" // root dropdown menu label
excludeBottomBorder={true} // to include or exclude bottom border on the last entry in the list, default: false
emptyPropertyLabel="Property is empty" // text to display for null or undefined values
rootProperty={true} // to signify that this is the root of the document, from a user perspective always needs to be true
propertyNameProcessor={(name) => name + ": "} // function that processes property names, default: processes from camelCase to normal text
/>
git clone or download this repositorynpm install in repositorynpm start to start the development serverFAQs
React component that allows you to render JSON documents or serializable JavaScript objects written with TypeScript.
The npm package react-json-component receives a total of 351 weekly downloads. As such, react-json-component popularity was classified as not popular.
We found that react-json-component demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.