Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
JSONx
is a superset of JSON
, meaning a valid JSON
string is automatically a valid JSONx
string.JSONx
is not intended to replace JSON
, instead, it is intended to be translated to JSON
.JSONx-js
is the Javascript binding of JSONx
. It helps to translate a JSONx
string to a JSON
string.npm install jsonx-js
{
// keys are not necessary to be quoted
name: "jsonx",
/* This is also a comment. */
url: "http://jsonx.org",
/*
Here is some more comments
which span across multi lines.
*/
"languages-bindings": ["Javascript", "Golang",],
/*
Tailing comma is not a problem.
Multiline text also works.
*/
description: `Multiline text is translated into an array
of strings. JSONx makes JSON easier to use for
configuration files.`,
}
The JSONx
above should produce the following JSON
:
{
"name": "jsonx",
"url": "http://jsonx.org",
"languages-bindings": [
"Javascript",
"Golang"
],
"description": [
"Multiline text is translated into an array",
"of strings. JSONx makes JSON easier to use for",
"configuration files."
]
}
var jsonx = require('jsonx-js');
var jsonxString = '...';
var jsonString = jsonx.toJSON(jsonxString);
console.log(jsonString);
<script src="path/to/jsonx.js"></script>
<script>
var jsonxString = '...';
var jsonString = jsonx.toJSON(jsonxString);
console.log(jsonString);
</script>
FAQs
JSONx javascript binding.
We found that jsonx-js 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.