Registry / serialization / snakeyaml

snakeyaml

JSON →
library2.6javamavenunverified

SnakeYAML is a YAML 1.1 parser and emitter for Java, providing a high-level API for YAML processing.

<dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>2.6</version> </dependency>
INSTALL
IMPORT
SIG · SNAKEYAML
S
snakeyaml
serializationjavav2.6
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.

Yaml
✓ org.yaml.snakeyaml.Yaml

Parses a YAML string into a Java Map.

import org.yaml.snakeyaml.Yaml; import java.util.Map; public class Quickstart { public static void main(String[] args) { Yaml yaml = new Yaml(); String input = "name: John\nage: 30"; Map<String, Object> data = yaml.load(input); System.out.println(data.get("name")); } }
Debug
Known issues
breakingSnakeYAML by default can deserialize arbitrary Java objects, leading to security vulnerabilities.
fix
Use 'SafeConstructor' or restrict allowed classes when loading untrusted YAML.
affects: <2.0
Upgrade
Version history
2.6latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
56 hits · last 30 days
node
36
Resources