LSP wire format, and JSON parsing/printing