CSTL-896 use json binding for metadata to save.