# FetchJS addSubscriber possible problem

**URL:** https://forums.fusetools.com/t/fetchjs-addsubscriber-possible-problem/4087
**Category:** Bug Reports
**Created:** [September 2, 2015, 1:34pm UTC](https://forums.fusetools.com/t/fetchjs-addsubscriber-possible-problem/4087 "2015-09-02T13:34:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Bjorn-Olav\_Strand](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bjorn-olav_strand/32/583_2.png) [@Bjorn-Olav\_Strand](https://forums.fusetools.com/u/Bjorn-Olav_Strand)
#### Post date: [September 2, 2015, 1:34pm UTC](https://forums.fusetools.com/t/fetchjs-addsubscriber-possible-problem/4087/1 "2015-09-02T13:34:46Z")

</div>

Hi,

I was following this guide: [https://www.fusetools.com/developers/guides/fusejs/fetchjson](https://www.fusetools.com/developers/guides/fusejs/fetchjson) and it kept crashing. So I changed it to this:

```javascript
    data.addSubscriber(function() {
      // Assuming description is a member of the returned JSON
      // object from the url

      debug_log("got some data " + data);
      //debug_log("Got some data: " + data.value.arne);
    });

```

And it gave the following output:

```auto
Output: got some data (observable) 
Output: got some data (observable) {"arne":"arnemann"}

```

So it will be called to times. One time with undefined in data or data.value. Is this the correct behaviour?

---

<div class="post-metadata">

### Author: ![Bjorn-Olav\_Strand](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bjorn-olav_strand/32/583_2.png) [@Bjorn-Olav\_Strand](https://forums.fusetools.com/u/Bjorn-Olav_Strand)
#### Post date: [September 2, 2015, 1:43pm UTC](https://forums.fusetools.com/t/fetchjs-addsubscriber-possible-problem/4087/2 "2015-09-02T13:43:30Z")

</div>

Also it seems like it doesn’t parse the json, but rather gives me the whole json-string in data.value, and nothing in data.value.arne
