We want to convert the table contents to JSON to be able to send them to a server or for any other use. This should probably be a 'static' function. Pass in the BSTable object? Im not opposed to it being a function within the class either.