conversion

oxygen.json.syntax.conversion
object conversion

Attributes

Experimental
true
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
conversion.type

Members list

Extensions

Extensions

extension [A](self: A)
def safeToJsonAST(implicit encoder: JsonEncoder[A]): Json

Encodes the given A to a string, and then parses it back into a Json AST. If the given json encoder is somehow bricked, and does not produce a valid Json AST, the result will be a raw Json string.

Encodes the given A to a string, and then parses it back into a Json AST. If the given json encoder is somehow bricked, and does not produce a valid Json AST, the result will be a raw Json string.

Attributes

extension (self: String)

Attempts to decode the given string into a Json AST. If the given string is not valid Json, the result with be a raw Json string.

Attempts to decode the given string into a Json AST. If the given string is not valid Json, the result with be a raw Json string.

Attributes

extension (self: Json)
def simpleJsonString: String