-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathxml2json.sublime-settings
More file actions
37 lines (27 loc) · 1.27 KB
/
Copy pathxml2json.sublime-settings
File metadata and controls
37 lines (27 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
// Controls how empty XML tags are written: "compact" => <tag/>, "spaced" => <tag />, "expanded" => <tag></tag>
"empty_tag_style": "compact",
// Indentation size for pretty JSON output
"pretty_json_indent": 2,
// Indentation size for pretty XML output
"pretty_xml_indent": 2,
// Whether conversion commands default to pretty (true/"pretty") or compact (false/"compact")
"default_conversion_pretty": true,
// JSON output options
"json_ensure_ascii": false,
"json_sort_keys": false,
// Convert simple attribute/text XML nodes to {attr: value, "value": text} when converting to JSON
"normalize_attribute_text_pairs": true,
// The key name to use for text content when normalize_attribute_text_pairs is enabled
"attribute_text_value_key": "value",
// Default root name when wrapping JSON that lacks a single root
"default_xml_root_name": "root",
// Whether to include the XML declaration when converting JSON to XML
"include_xml_declaration": true,
// Line endings for generated output: "auto" (preserve source), "unix", "windows", or "mac"
"line_ending": "auto",
// Ensure a trailing newline is present in generated output
"ensure_final_newline": true,
// Trim trailing whitespace in generated output (e.g., space after commas)
"trim_trailing_whitespace": true
}