Attempting to write JSON tables manually using write.table.

DOesn't work for logicals.
Switched to a cleaner list->JSON conversion. Tests not working because of some bug on text connections.