changes to use JSON-- draft 1.
Problem with bytestrings: No instance for (FromJSON ByteString)