Frenetic_netkat.JsonSourceJSON serialization/deserialization of NetKAT messages.
NetKAT comes in two syntaxes: "regular" which is handled by Parser/Lexer and "json" which is handled here. We translate most things to the Syntax.policy type
This module also serializes/deserializes switch-to-controller OpenFlow messages for net apps.
Deserialize a Yojson repesentation of a NetKAT policy
Serialize a NetKAT policy to Yojson format. Note: errors may occur when converting between 64-bit values and JSON-representable integers.
Same as pol_of_json, but reads json from input channel
Same as event_to_json but returns json string
Same as pol_of_json, but receives json string
Sames as stats_to_json but returns json string
val pkt_out_from_json :
json ->
Syntax.switchId * Syntax.portId option * Syntax.payload * Syntax.policy list