patch 7.4.1154
Problem: No support for JSON.
Solution: Add jsonencode() and jsondecode(). Also add v:false, v:true,
v:null and v:none.
diff --git a/src/if_py_both.h b/src/if_py_both.h
index e220e3f..e8a5f5d 100644
--- a/src/if_py_both.h
+++ b/src/if_py_both.h
@@ -810,6 +810,25 @@
}
}
}
+ else if (our_tv->v_type == VAR_SPECIAL)
+ {
+ if (our_tv->vval.v_number == VVAL_FALSE)
+ {
+ ret = Py_False;
+ Py_INCREF(ret);
+ }
+ else if (our_tv->vval.v_number == VVAL_TRUE)
+ {
+ ret = Py_True;
+ Py_INCREF(ret);
+ }
+ else
+ {
+ Py_INCREF(Py_None);
+ ret = Py_None;
+ }
+ return ret;
+ }
else
{
Py_INCREF(Py_None);