make a function in script test that can dump json