[feature] Add support of JSON encoding for insert and update