Registry / serialization / xstream

xstream

JSON →
library1.4.21javamavenunverified

XStream is a serialization library from Java objects to XML and back.

<dependency> <groupId>com.thoughtworks.xstream</groupId> <artifactId>xstream</artifactId> <version>1.4.21</version> </dependency>
INSTALL
IMPORT
SIG · XSTREAM
X
xstream
serializationjavav1.4.21
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

XStream
com.thoughtworks.xstream.XStream

Serialize a POJO to XML using XStream.

import com.thoughtworks.xstream.XStream; public class Quickstart { public static void main(String[] args) { XStream xstream = new XStream(); Person p = new Person(); p.name = "John"; String xml = xstream.toXML(p); System.out.println(xml); } } class Person { public String name; }
Debug
Known issues
breakingXStream is vulnerable to deserialization attacks if not properly configured.
fix
Use XStream.setupDefaultSecurity() and restrict permitted classes.
affects: <1.4.20
Upgrade
Version history
1.4.21latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
24
OpenAI (training)
1
Resources
xstream — mvn dependency:get xstream · libregistry