work on JSON input filter