Skip to content

Library to handle and validate documents in JSONFeed format

License

Notifications You must be signed in to change notification settings

chobeat/scala-json-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}")
})

About

Library to handle and validate documents in JSONFeed format

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages