Invalid replacer argument
An attempt has been made to invoke JSON.stringify with an argument that is not valid. The replacer argument must be a function or an array.
To correct this error
Change the replacer argument to a function or an array.
The code in this example causes a runtime error because memberfilter is an object instead of a function or array.