nan in json problem