json pre/post working