hosc-json-0.14: Haskell Open Sound Control JSON Serialisation

Safe HaskellNone

Sound.OSC.Type.JSON.Aeson

Contents

Description

Encoding and decoding of OSC types as JSON values.

Synopsis

Library variant

Encoders

encode_integral :: Integral n => n -> ValueSource

All Integral values are packed to Integer.

encode_floating :: (Real n, Floating n) => n -> ValueSource

All Floating values are packed to Double.

encode_assoc :: (String, Value) -> ValueSource

Pack (key,value) pair to JSObject.

 encode_assoc ("a",encode_int 0)

Decoders