Corrected json strategy to stop warning when called from console