Add support of set flag from json.
close  Issue #16