Skip to content

Compilation error while flatmapping JSValue #34

@kamilkloch

Description

@kamilkloch

The following code

import org.json4s._
import org.json4s.jackson.JsonMethods._

val json = parse(...)

val bidsAndAsks1 = for {
    JObject(child) <- json
    JField("symbol", JString(name)) <- child
    ...
} yield ...

produces

[error] CustomResources.scala:108:20: value flatMap is not a member of org.json4s.JValue
[error]     JObject(child) <- json
[error]                    ^
[error] one error found

Compilation succeeds without the plugin. Plugin version 0.3.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions