Read a JSON array of integers and print only the even values as a JSON array (use filter).
Input: one JSON array. Output: one JSON array.
Your program reads from stdin and prints to stdout.
Example 1
Input: [1,2,3,4]
Output: [2,4]
Hints