Fix weird quoted JSON error messages caused by encoding twice
Fix template to work with new JSON format
Remove obsolete 'ApiDoc' data structures and JSON instances

became obsolete with commit e7be3d4e21974dd5af91adc6cf52dbad77256835