added to_json method to Table
updated version to reflect dev