Omit unnecessary commas when serializing to table