Make glue keep the same legacy API
Add new format json