testing json encode