reverted back the patch for JSON_nan_bug