public final class YamlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
toJson(String yaml)
Converts
yaml from YAML to JSON. |
public static String toJson(@Nonnull String yaml) throws IOException
yaml
from YAML to JSON. Note that, since YAML is a superset of JSON, this
method also accepts JSON.yaml
- the YAML to convertIOException
- if an I/O error occurs while parsing the YAML document or while writing the
JSON documentCopyright © 2017–2021 Google. All rights reserved.