Skip to content
Library to handle and validate documents in JSONFeed format
Scala
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/feed_reader/src/main/scala
project
src
.gitignore
LICENSE
README.md
build.sbt

README.md

scala-json-feed offers support for the JSONFeed format and makes it easily usable in Scala.

The project is currently WIP and the first goal is to achieve full support of the format and correct validation.

Feel free to contribute with ideas, code and requests.

This is my first published and supported library so any criticism on the API, build and release methods are welcome.

Example

Parsing

import scalajsonfeed.core.JSONFeedParser._
val input:String = """
{
   "title":"a title",
   "items":[
      {
         "id":"1",
         "tags":[
            "a",
            "b",
            "c"
         ],
         "content_text":"content"
      },
      {
         "id":"2",
         "content_text":"some other content"
      }
   ]
}
 """
val result = parse(input)

result.foreach(d => {
      println(s"Title: ${d.title}")
})
You can’t perform that action at this time.