rework with json examples