typelevel / typelevel/jawn

Integration with scala-json AST

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
436
Forks
72
Avg merge
1h 44m
Merged PRs (30d)
1

Description

After the results of SLIP-28/scala contributors, the ScalaJSON AST has finally been put into the scala platform (see https://github.com/mdedetrich/scalajson for more details). Currently its a 1.0.0-M1 release however a full release is expected in a few days if there are no major issues).

This ticket is to describe integration with Jawn, and how it would possibly work. A really ideal situation would be to integrate the scalajson.ast.unsafe.JValue into the core Jawn parser (and I would also be interested to see the results in regards to parsing). Doing so would also automatically expose the standard safe AST to any users and would provide "automatic" interopt once the other frameworks/json libraries adopt scalaJSON.

If this doesn't work out, it can always be added as either a module (least ideal situation) or a first class type that jawn exposes. Let me know if there are any ways that I can help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing Jawn's core parser and the scala-json AST, including scalajson.ast.unsafe.JValue. Compare integrating it directly with the parser against a module or first-class Jawn type, and document the parsing results and chosen approach; the issue does not name files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.