
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@iota/extract-json
Advanced tools
Extracts JSON encoded messages from signature message fragments.
Install using npm:
npm install @iota/extract-json
or using yarn:
yarn add @iota/extract-json
Summary: Extracts JSON from transactions.
Throws:
errors.INVALID_BUNDLE : Make sure that the bundle argument is an array of transaction trytes.errors.INVALID_JSON : Make sure that the transactions' signatureMessageFragment fields contain valid JSON.| Param | Type | Description |
|---|---|---|
| bundle | array | Transaction trytes |
This method takes the signatureMessageFragment fields of all the given transaction trytes, and tries to extract any JSON data that's in them.
The following forms of JSON-encoded values are supported:
"{ \"message\": \"hello\" }""[1, 2, 3]""true", "false" & "null""\"hello\""123To get a bundle's transaction trytes from the Tangle, use the getBundle() method.
Returns: string | number | null - The JSON data in the transactions
Example
try {
const json = JSON.parse(extractJson(bundle))
} catch (error) {
console.log(error);
}
FAQs
Extracts JSON encoded messages from signature message fragments
We found that @iota/extract-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.