JSON and some packet parsing.