/*
* Note: due to GWT types restrictions, we couldn't represent the JSON.parse() reviver function using a Java JsObject (function return value can be anything).
* Instead se define a js function inline using JsFunctionBuilder.
*/
JsFunction reviver2 = new JsFunctionBuilder() {
@Override
public native final JsFunction buildFunction()/*-{
return function(k, v) {
if (k == "miscellaneous" && v > 500)
return 999999;