JsonParser

trait JsonParser[A]

Trait for the JsonParser

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def deserialize(string: String): Try[A]

Deserialize the JSON string in a Try generic type

Deserialize the JSON string in a Try generic type

Value parameters:
string

JSON string

Returns:

a Try with the object deserialized

def serialize(element: A): JsObject

Serialize a generic type in a JSON Object

Serialize a generic type in a JSON Object

Value parameters:
element

generic element to serialize

Returns:

JSON Object

Concrete methods

Course identifier deserializer

Course identifier deserializer

Value parameters:
jsonObject

course identifier as JsOgject

Returns:

a course identifier

def serializeCourseIdentifier(courseIdentifier: CourseIdentifier): JsObject

Course identifier serializer

Course identifier serializer

Value parameters:
courseIdentifier

course identifier

Returns:

a JsObject