All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.json4s.JsonAST.scala Maven / Gradle / Ivy

There is a newer version: 4.1.0-M8
Show newest version
/*
 * Copyright 2009-2011 WorldWide Conferencing, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.json4s

object JsonAST {

  /**
   * Concatenates a sequence of JValues.
   * 

* Example:

   * concat(JInt(1), JInt(2)) == JArray(List(JInt(1), JInt(2)))
   * 
*/ def concat(xs: JValue*): JValue = xs.foldLeft(JNothing: JValue)(_ ++ _) type JValue = org.json4s.JValue val JNothing = org.json4s.JNothing val JNull = org.json4s.JNull type JString = org.json4s.JString val JString = org.json4s.JString type JDouble = org.json4s.JDouble val JDouble = org.json4s.JDouble type JDecimal = org.json4s.JDecimal val JDecimal = org.json4s.JDecimal type JLong = org.json4s.JLong val JLong = org.json4s.JLong type JInt = org.json4s.JInt val JInt = org.json4s.JInt type JBool = org.json4s.JBool val JBool = org.json4s.JBool type JField = (String, JValue) val JField = org.json4s.JField type JObject = org.json4s.JObject val JObject = org.json4s.JObject type JArray = org.json4s.JArray val JArray = org.json4s.JArray type JSet = org.json4s.JSet val JSet = org.json4s.JSet }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy