working on smart json