[WIP] Add JSON serializer

Targets #151
You meant to have a `struct ws_array` here, didn't you?