Now accepts JSON packets. Examples included.