change Server script to JSON