similar to eb3aa79863824362dcd4edc3ee86bd91f00133f4 rewrite julius2json to fix trailing comma bug