make commas optional inside of arrays and objects