
Security News
arXiv Is Rate Limiting Authors Following a Flood of AI Slop Submissions
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.
react-prettify-json
Advanced tools
Minimalist package which makes possible for you to display your JSON as a element on your React App, personalizing the colors.
npm install --save react-prettify-json
import React from 'react';
import PrettyJSON from 'react-prettify-json';
const Example: React.FC = () => {
const jsonObject = {
"react": ">=16.0.0",
"@unform/core": ">=5.0.0"
}
return (
<PrettyJSON
jsonObject={jsonObject}
/>
)
}
You can use that above and you're done. But, if you want a little more customization, you can set your own colors
<PrettyJSON
jsonObject={jsonObject}
colors={{
punctuation: '#fff',
key: '#a3fff3',
value: '#49cabe',
string: '#49caeb',
}}
/>
And achieve a result like this (photo took directly from my portfolio)

If a prop is Required, the default field will appear empty.
| name | type | description | default |
|---|---|---|---|
| jsonObject | json object (pls) | The json object that you want styled | -- |
| colors | object: punctuation, key, value, string | Each color variable corresponds to each one of JSON data types | everything black |
MIT © Bruno De Masi
FAQs
Simple React Component for displaying data in a pretty way
We found that react-prettify-json 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.

Security News
arXiv now limits authors to two submissions a month as AI slop overwhelms moderators, delays good papers, and sparks debate over applying the limit to everyone.

Research
/Security News
A new GhostAction wave hits hundreds of GitHub repos, expanding CI/CD secret theft to cloud and AI credentials in source code and git history.

Research
/Security News
Tensorlake npm SDK version 0.5.144 was compromised in a ChainDrop / Shai-Hulud attack, delivering credential-stealing malware.