agentsclimarketplace

Scala circe json

Skill cxcscmu/SkillLearnBench/skills/b4-skill-creator-gemini-3.1-pro-preview/python-scala-translation/scala-circe-json

How to use circe for JSON processing in Scala. Use this skill whenever translating Python json operations to Scala or working with circe libraries.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill scala-circe-json

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

0.9 KB, 174 tokens by cl100k_base, as published. Nobody here has run it

Scala Circe JSON

When translating Python's json module to Scala, use io.circe when requested or working with Json data structures.

Parsing JSON

  • Parse JSON string: io.circe.parser.parse(string) returns Either[ParsingFailure, Json].
  • Extract value safely: parse(string).getOrElse(Json.Null).

Generating JSON Strings

  • Compact string output: json.noSpaces.
  • Pretty printed output (indented): json.spaces2.

Navigating JSON

  • Objects: json.asObject returns Option[JsonObject].
  • Arrays: json.asArray returns Option[Vector[Json]].
  • Access object properties: jsonObject(key) or jsonObject.toMap.get(key).
  • Access array elements: jsonArray.lift(index).

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.