In NIP52, for kind 31923 events the "start" tag must contain a UNIX timestamp. But when that's serialized to JSON, should that have quotes around that integer or should be serialized like ["start", 1900000] with the timestamp not surrounded by quotation marks? #asknostr

Reply to this note

Please Login to reply.

Discussion

NVM, it seems like it should definitely not have the quotation marks around the integer.

fasterxml parses java.lang.Integer and int as JSON strings, not JSON numbers...

NVM, it has to do with custom serializers used by the library i'm editing

UPDATE: I just found it that it does in fact need the quotes around the timestamp (In other words you need to pass it in as a JSON string, not a JSON number). That's definitely what is specified.