Add json creation when running without embedded web server