change json boolean to integer

use integer 0,1 to replace json boolean for ease of cross component
processing.