valyala / fastjson

Fast JSON parser and validator for Go. No custom structs, no code generation, no reflection

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Type for boolean

awfm9 opened this issue · comments

I was just wondering why the type returned for boolean is eithe true or false. It's not really in line with the data types for JSON, is it? Why doesn't it return boolean in that case?

This is just historical artifact :) It is impossible to change the behavior now due to backwards compatibility.

Do you have plans to release a v2 where you fix it? :D

There are no such plans yet, since this change is too small for v2

Of course. Alrighty then, thanks.