distinguish betweet json and js