Json structure is now retained after filtering