{"id":29879413,"url":"https://github.com/typelevel/jawn-fs2","last_synced_at":"2026-01-11T17:40:25.849Z","repository":{"id":18839042,"uuid":"22054760","full_name":"typelevel/jawn-fs2","owner":"typelevel","description":"Integration between jawn and fs2","archived":false,"fork":false,"pushed_at":"2025-07-07T21:28:47.000Z","size":807,"stargazers_count":38,"open_issues_count":2,"forks_count":16,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-07-21T20:27:10.842Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"OCA/connector-interfaces","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/typelevel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2014-07-21T06:55:59.000Z","updated_at":"2025-07-07T21:28:50.000Z","dependencies_parsed_at":"2023-11-09T12:29:26.617Z","dependency_job_id":"9c993070-d4dd-4b3e-bdc1-038d997b3c08","html_url":"https://github.com/typelevel/jawn-fs2","commit_stats":{"total_commits":613,"total_committers":20,"mean_commits":30.65,"dds":0.6296900489396411,"last_synced_commit":"9ffbf652eee8e550c38eb28ea82bf3df8a9ef56c"},"previous_names":["http4s/jawn-fs2","rossabaker/jawn-streamz"],"tags_count":69,"template":false,"template_full_name":null,"purl":"pkg:github/typelevel/jawn-fs2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fjawn-fs2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fjawn-fs2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fjawn-fs2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fjawn-fs2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/typelevel","download_url":"https://codeload.github.com/typelevel/jawn-fs2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/typelevel%2Fjawn-fs2/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267134602,"owners_count":24040887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-26T02:00:08.937Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-31T08:45:43.144Z","updated_at":"2026-01-11T17:40:25.820Z","avatar_url":"https://github.com/typelevel.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jawn-fs2 [![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.typelevel/jawn-fs2_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.typelevel/jawn-fs2_2.13)\n[![Continuous Integration](https://github.com/typelevel/jawn-fs2/actions/workflows/ci.yml/badge.svg)](https://github.com/typelevel/jawn-fs2/actions/workflows/ci.yml)\n\nAsynchronously parse [fs2](https://github.com/functional-streams-for-scala/fs2) streams\nto JSON values with [jawn](https://github.com/non/jawn).\n\n## Example\n\n`sbt jawn-fs2JVM/Test/run` to see it in action:\n\n```Scala\npackage com.example\n\nimport cats.effect.{IO, IOApp, ExitCode}\nimport fs2.{io, text, Stream}\nimport fs2.io.file.Files\nimport java.nio.file.Paths\nimport jawnfs2._\nimport scala.concurrent.duration._\n\nobject Example extends IOApp {\n  // Pick your favorite supported AST (e.g., json4s, argonaut, etc.)\n  implicit val facade = org.typelevel.jawn.ast.JawnFacade\n\n  def run(args: List[String]) = {\n    // From JSON on disk\n    val jsonStream = Files[IO].readAll(Paths.get(\"testdata/random.json\"), 64)\n    // Simulate lag between chunks\n    val lag = Stream.awakeEvery[IO](100.millis)\n    val laggedStream = jsonStream.chunks.zipWith(lag)((chunk, _) =\u003e chunk)\n    // Print each element of the JSON array as we read it\n    val json = laggedStream.unwrapJsonArray\n      .map(_.toString)\n      .intersperse(\"\\n\")\n      .through(text.utf8Encode)\n    // run converts the stream into an IO, unsafeRunSync executes the IO for its effects\n    json.through(io.stdout).compile.drain.as(ExitCode.Success)\n  }\n}\n```\n\n### Migration note\n\nIn jawn-fs2-2.x, the root package changes from `jawn.fs2` to `org.typelevel.jawn.fs2`.\n\n## Add jawn-fs2 to your project\n\nAdd to your build.sbt:\n\n```\n// For cats-effect-2\nlibraryDependencies += \"org.http4s\" %% \"jawn-fs2\" % \"1.1.0\"\n\n// For cats-effect-3\nlibraryDependencies += \"org.typelevel\" %% \"jawn-fs2\" % \"2.0.0\"\n\n// Pick your AST: https://github.com/non/jawn#supporting-external-asts-with-jawn\nlibraryDependencies += \"org.typelevel\" %% \"jawn-ast\" % \"1.0.0\"\n```\n\n## Compatibility matrix\n\n| Stream Library      | You need...                                  | Status\n| ------------------- | -------------------------------------------- | ------\n| fs2-3.x             | `\"org.typelevel\" %% \"jawn-fs2\" % \"2.0.0\"`    | stable\n| fs2-2.x             | `\"org.http4s\" %% \"jawn-fs2\" % \"1.1.0\"`       | stable\n| fs2-1.x             | `\"org.http4s\" %% \"jawn-fs2\" % \"0.14.2\"`      | EOL\n| fs2-0.10.x          | `\"org.http4s\" %% \"jawn-fs2\" % \"0.12.2\"`      | EOL\n| fs2-0.9.x           | `\"org.http4s\" %% \"jawn-fs2\" % \"0.10.1\"`      | EOL\n| scalaz-stream-0.8a  | `\"org.http4s\" %% \"jawn-streamz\" % \"0.10.1a\"` | EOL\n| scalaz-stream-0.8.x | `\"org.http4s\" %% \"jawn-streamz\" % \"0.10.1\"`  | EOL\n\nThe legacy scalaz-stream artifacts are on the [jawn-streamz](https://github.com/rossabaker/jawn-fs2/tree/jawn-streamz) branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelevel%2Fjawn-fs2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftypelevel%2Fjawn-fs2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftypelevel%2Fjawn-fs2/lists"}