Add begin0 and json simplification.