Define jsonEdit directive