helper script to test JSON endpoint testing