Add compat support json