summaryrefslogtreecommitdiff
path: root/test/files/run/json.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/json.scala')
-rw-r--r--test/files/run/json.scala16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/files/run/json.scala b/test/files/run/json.scala
index 8ee8c347fd..7d3b635006 100644
--- a/test/files/run/json.scala
+++ b/test/files/run/json.scala
@@ -34,7 +34,7 @@ object Test extends App {
case Some(parsed) => println("Passed parse : " + sortJSON(parsed))
}
}
-
+
// For this usage, do a raw parse (to JSONObject/JSONArray)
def printJSON(given : String, expected : JSONType) {
printJSON(given, JSON.parseRaw, expected)
@@ -89,11 +89,11 @@ object Test extends App {
// The library should recurse into arrays to find objects (ticket #2207)
printJSON("[{\"a\" : \"team\"},{\"b\" : 52}]", JSONArray(List(JSONObject(Map("a" -> "team")), JSONObject(Map("b" -> 52.0)))))
-
+
// The library should differentiate between empty maps and lists (ticket #3284)
- printJSONFull("{}", Map())
+ printJSONFull("{}", Map())
printJSONFull("[]", List())
-
+
// Lists should be returned in the same order as specified
printJSON("[4,1,3,2,6,5,8,7]", JSONArray(List[Double](4,1,3,2,6,5,8,7)))
@@ -152,7 +152,7 @@ object Test extends App {
)
)
-
+
printJSONFull(sample1, sample1Obj)
println
@@ -188,7 +188,7 @@ object Test extends App {
// from http://json.org/example.html
val sample3 = """
{"web-app": {
- "servlet": [
+ "servlet": [
{
"servlet-name": "cofaxCDS",
"servlet-class": "org.cofax.cds.CDSServlet",
@@ -244,7 +244,7 @@ object Test extends App {
{
"servlet-name": "cofaxAdmin",
"servlet-class": "org.cofax.cds.AdminServlet"},
-
+
{
"servlet-name": "fileServlet",
"servlet-class": "org.cofax.cds.FileServlet"},
@@ -271,7 +271,7 @@ object Test extends App {
"cofaxAdmin": "/admin/*",
"fileServlet": "/static/*",
"cofaxTools": "/tools/*"},
-
+
"taglib": {
"taglib-uri": "cofax.tld",
"taglib-location": "/WEB-INF/tlds/cofax.tld"}