11## Hjson ##
22
3+ # T: Hjson .IHjsonDsfProvider
4+
5+ A interface to support Domain Specific Formats for Hjson.
6+
7+
8+
9+ ##### P: Hjson .IHjsonDsfProvider.Name
10+
11+ Gets the name of this DSF.
12+
13+
14+
15+ ##### P: Hjson .IHjsonDsfProvider.Description
16+
17+ Gets the description of this DSF.
18+
19+
20+
21+ ##### M: Hjson .IHjsonDsfProvider.Parse(System.String)
22+
23+ Tries to parse the text as a DSF value.
24+
25+
26+
27+ ##### M: Hjson .IHjsonDsfProvider.Stringify(Hjson.JsonValue)
28+
29+ Stringifies DSF values.
30+
31+
32+
33+ # T: Hjson .HjsonDsf
34+
35+ Provides standard DSF providers.
36+
37+
38+
39+ ##### M: Hjson .HjsonDsf.Math
40+
41+ Returns a math DSF provider.
42+
43+
44+
45+ ##### M: Hjson .HjsonDsf.Hex(System.Boolean)
46+
47+ Returns a hex DSF provider.
48+
49+
50+
51+ ##### M: Hjson .HjsonDsf.Date
52+
53+ Returns a date DSF provider.
54+
55+
56+
357# T: Hjson .HjsonOptions
458
559Options for Save.
660
761
862
63+ ##### M: Hjson .HjsonOptions.#ctor
64+
65+ Initializes a new instance of this class.
66+
67+
68+
969##### P: Hjson .HjsonOptions.KeepWsc
1070
1171Keep white space and comments.
@@ -14,7 +74,13 @@ Keep white space and comments.
1474
1575##### P: Hjson .HjsonOptions.EmitRootBraces
1676
17- Show braces at the root level.
77+ Show braces at the root level (default true).
78+
79+
80+
81+ ##### P: Hjson .HjsonOptions.DsfProviders
82+
83+ Gets or sets DSF providers.
1884
1985
2086
@@ -30,7 +96,7 @@ Loads Hjson/JSON from a file.
3096
3197
3298
33- ##### M: Hjson .HjsonValue.Load(System.String,System.Boolean )
99+ ##### M: Hjson .HjsonValue.Load(System.String,Hjson.HjsonOptions )
34100
35101Loads Hjson/JSON from a file, optionally preserving whitespace and comments.
36102
@@ -42,7 +108,7 @@ Loads Hjson/JSON from a stream.
42108
43109
44110
45- ##### M: Hjson .HjsonValue.Load(System.IO.Stream,System.Boolean )
111+ ##### M: Hjson .HjsonValue.Load(System.IO.Stream,Hjson.HjsonOptions )
46112
47113Loads Hjson/JSON from a stream, optionally preserving whitespace and comments.
48114
@@ -54,7 +120,7 @@ Loads Hjson/JSON from a TextReader.
54120
55121
56122
57- ##### M: Hjson .HjsonValue.Load(System.IO.TextReader,System.Boolean ,Hjson.IJsonReader)
123+ ##### M: Hjson .HjsonValue.Load(System.IO.TextReader,Hjson.HjsonOptions ,Hjson.IJsonReader)
58124
59125Loads Hjson/JSON from a TextReader, optionally preserving whitespace and comments.
60126
@@ -72,7 +138,7 @@ Parses the specified Hjson/JSON string.
72138
73139
74140
75- ##### M: Hjson .HjsonValue.Parse(System.String,System.Boolean )
141+ ##### M: Hjson .HjsonValue.Parse(System.String,Hjson.HjsonOptions )
76142
77143Parses the specified Hjson/JSON string, optionally preserving whitespace and comments.
78144
@@ -96,6 +162,30 @@ Saves Hjson to a TextWriter.
96162
97163
98164
165+ ##### M: Hjson .HjsonValue.Load(System.String,System.Boolean)
166+
167+ Loads Hjson/JSON from a file, optionally preserving whitespace and comments.
168+
169+
170+
171+ ##### M: Hjson .HjsonValue.Load(System.IO.Stream,System.Boolean)
172+
173+ Loads Hjson/JSON from a stream, optionally preserving whitespace and comments.
174+
175+
176+
177+ ##### M: Hjson .HjsonValue.Load(System.IO.TextReader,System.Boolean,Hjson.IJsonReader)
178+
179+ Loads Hjson/JSON from a TextReader, optionally preserving whitespace and comments.
180+
181+
182+
183+ ##### M: Hjson .HjsonValue.Parse(System.String,System.Boolean)
184+
185+ Parses the specified Hjson/JSON string, optionally preserving whitespace and comments.
186+
187+
188+
99189# T: Hjson .WscJsonObject
100190
101191Implements an object value, including whitespace and comments.
@@ -443,6 +533,52 @@ The type of this value.
443533
444534
445535
536+ # T: Hjson .JsonType
537+
538+ Defines the known json types.
539+
540+
541+
542+ > There is no null type as the primitive will be null instead of the JsonPrimitive containing null.
543+
544+
545+
546+ ##### F: Hjson .JsonType.String
547+
548+ Json value of type string.
549+
550+
551+
552+ ##### F: Hjson .JsonType.Number
553+
554+ Json value of type number.
555+
556+
557+
558+ ##### F: Hjson .JsonType.Object
559+
560+ Json value of type object.
561+
562+
563+
564+ ##### F: Hjson .JsonType.Array
565+
566+ Json value of type array.
567+
568+
569+
570+ ##### F: Hjson .JsonType.Boolean
571+
572+ Json value of type boolean.
573+
574+
575+
576+ ##### F: Hjson .JsonType.Unknown
577+
578+ Json value of an unknown type.
579+
580+
581+
446582# T: Hjson .JsonUtil
447583
448584Provides Json extension methods.
@@ -595,46 +731,6 @@ Convert the timespan to JSON/ISO 8601.
595731
596732
597733
598- # T: Hjson .JsonType
599-
600- Defines the known json types.
601-
602-
603-
604- > There is no null type as the primitive will be null instead of the JsonPrimitive containing null.
605-
606-
607-
608- ##### F: Hjson .JsonType.String
609-
610- Json value of type string.
611-
612-
613-
614- ##### F: Hjson .JsonType.Number
615-
616- Json value of type number.
617-
618-
619-
620- ##### F: Hjson .JsonType.Object
621-
622- Json value of type object.
623-
624-
625-
626- ##### F: Hjson .JsonType.Array
627-
628- Json value of type array.
629-
630-
631-
632- ##### F: Hjson .JsonType.Boolean
633-
634- Json value of type boolean.
635-
636-
637-
638734# T: Hjson .Stringify
639735
640736The ToString format.
@@ -747,6 +843,12 @@ Returns the contained primitive value.
747843
748844
749845
846+ ##### M: Hjson .JsonValue.FromObject(System.Object)
847+
848+ Wraps an unknown object into a JSON value (to be used with DSF).
849+
850+
851+
750852##### M: Hjson .JsonValue.Load(System.String)
751853
752854Loads JSON from a file.
0 commit comments