So I have a document that have an int value set. But I want to set it to (null) and push changes. setInt accepts only Int, not Int?. and when i use setValue, it is set to null (string) that my parsers which are defined as Int? simply complain that instead of int, a “n” is found.
Can you please share the CBL version which you are using.
Also if you want to setInt as null, you can use setNumber, which has second argument as nullable.
when i use setValue, it is set to null (string) and when i use setValue, it is set to null (string) that my parsers which are defined as Int? simply complain that instead of int, a “n” is found.
I’m guessing that you are calling toJSON() API to get a JSON string from a document? It is unexpected if null is converted to “n” as string.