DG: Adding JSON and XML filters for struct extensions (encoding issues)