Skip to content

Commit 5f56f24

Browse files
committed
publish 2.1.3
1 parent 8e1763d commit 5f56f24

4 files changed

Lines changed: 153 additions & 49 deletions

File tree

Hjson/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
[assembly: System.Reflection.AssemblyDescription("Hjson.dll")]
33
[assembly: System.Reflection.AssemblyProduct("Hjson - https://github.com/hjson/hjson-cs")]
44
[assembly: System.Reflection.AssemblyCopyright("See LICENSE")]
5-
[assembly: System.Reflection.AssemblyFileVersion("2.1.2.0")]
5+
[assembly: System.Reflection.AssemblyFileVersion("2.1.3.0")]
66
[assembly: System.Reflection.AssemblyTitle("Hjson.dll")]
77
[assembly: System.CLSCompliant(true)]

Hjson/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "2.1.2",
2+
"version": "2.1.3",
33
"buildOptions": {
44
"xmlDoc": true
55
},
@@ -11,4 +11,4 @@
1111
"frameworks": {
1212
"netstandard1.3": {}
1313
}
14-
}
14+
}

api.md

Lines changed: 147 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,71 @@
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

559
Options 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

1171
Keep 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

35101
Loads 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

47113
Loads 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

59125
Loads 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

77143
Parses 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

101191
Implements 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

448584
Provides 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

640736
The 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

752854
Loads JSON from a file.

history.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# hjson-cs History
22

3+
- v2.1.3
4+
- Update ML stringify to match JS
35
- v2.1.2
46
- add support for .NET Core
57
- v2.1.0
@@ -29,4 +31,4 @@
2931
- v1.13.0
3032
- fix stringify
3133
- v1.12.0
32-
- optional root braces
34+
- optional root braces

0 commit comments

Comments
 (0)