"""The encoder module for serializing SWJFF format"""

from typing import Union, Iterable, Mapping

JSONTypes = Union[
    int, float, str, bool, None, Mapping[str, "JSONTypes"], Iterable["JSONTypes"]
]

def serialize(data: JSONTypes) -> bytes:
    """Serializes data into a SWJFF format."""
