Skip to content

Commit 254f3dd

Browse files
committed
v0.1-RC7
1 parent 138a60a commit 254f3dd

File tree

3 files changed

+16
-20
lines changed

3 files changed

+16
-20
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ scala> def testMap = Map("hey" -> "there")
2929
testMap: scala.collection.immutable.Map[String,String]
3030

3131
scala> val testMapJs = testMap.js
32-
testMapJs: json.JObject =
32+
testMapJs: json.JObject =
3333
{
3434
"hey": "there"
3535
}
3636

3737
scala> Map("key" -> Seq.fill(3)(Set(Some(false), None))).js
38-
res4: json.JObject =
38+
res4: json.JObject =
3939
{
4040
"key": [[false, null], [false, null], [false, null]]
4141
}
@@ -66,9 +66,9 @@ scala> implicit val acc = ObjectAccessor.of[TestClass]
6666
acc: json.CaseClassObjectAccessor[TestClass] = ObjectAccessor[TestClass]
6767

6868
scala> val testClassJs = TestClass(1, None).js
69-
testClassJs: json.JObject =
69+
testClassJs: json.JObject =
7070
{
71-
"a": 1,
71+
"a": 1,
7272
"c": ""
7373
}
7474

@@ -82,21 +82,21 @@ scala> JObject("a".js -> 23.js).toObject[TestClass]
8282
res11: TestClass = TestClass(23,None,,None)
8383

8484
scala> TestClass(1, None).js + ("blah".js -> 1.js) - "a"
85-
res12: json.JValue =
85+
res12: json.JValue =
8686
{
87-
"c": "",
87+
"c": "",
8888
"blah": 1
8989
}
9090

9191
scala> Seq(TestClass(1, None), TestClass(1, Some(10), c = "hihi")).js
92-
res13: json.JArray =
92+
res13: json.JArray =
9393
[{
94-
"a": 1,
95-
"c": ""
94+
"a": 1,
95+
"c": ""
9696
}, {
97-
"a": 1,
98-
"b": 10,
99-
"c": "hihi"
97+
"a": 1,
98+
"b": 10,
99+
"c": "hihi"
100100
}]
101101
```
102102
* Typed exceptions with field data
@@ -120,15 +120,15 @@ SBT
120120
resolvers += "mmreleases" at
121121
"https://artifactory.mediamath.com/artifactory/libs-release-global"
122122

123-
libraryDependencies += "com.mediamath" %% "scala-json" % "0.1-RC6"
123+
libraryDependencies += "com.mediamath" %% "scala-json" % "0.1-RC7"
124124

125125
```
126126

127127
and for Scala.js
128128

129129
```scala
130130

131-
libraryDependencies += "com.mediamath" %%% "scala-json" % "0.1-RC6"
131+
libraryDependencies += "com.mediamath" %%% "scala-json" % "0.1-RC7"
132132

133133
```
134134

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version in ThisBuild := "0.1-RC6"
1+
version in ThisBuild := "0.1-RC7"
22

33
lazy val json = crossProject.in(file("."))
44
.settings(ScalaJSON.commonSettings: _*)

shared/src/main/scala/json/JSON.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ sealed trait JSONException extends Exception
3333
case class GenericJSONException(msg: String = "JSON Exception") extends Exception(msg) with JSONException
3434
case class JUndefinedException(msg: String = "Cannot access JUndefined") extends Exception(msg) with JSONException
3535

36-
trait StacklessJSONThrowable extends Throwable {
37-
override def fillInStackTrace: Throwable = this
38-
}
39-
40-
trait InputFormatException extends Exception with StacklessJSONThrowable with Product {
36+
trait InputFormatException extends Exception with Product {
4137
//def fieldName: String
4238
def prependFieldName(newField: String): InputFormatException
4339
def messageWithField: String = getMessage

0 commit comments

Comments
 (0)