# Unable to implemented ParseLiveQuery on iOS. Always get "cannot decode json into"

**URL:** <https://community.parseplatform.org/t/unable-to-implemented-parselivequery-on-ios-always-get-cannot-decode-json-into/3620>\
**Category:** iOS SDK 📱⌚️💻\
**Created:** [September 6, 2023, 2:41am UTC](https://community.parseplatform.org/t/unable-to-implemented-parselivequery-on-ios-always-get-cannot-decode-json-into/3620 "2023-09-06T02:41:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaquin102](https://community.parseplatform.org/user_avatar/community.parseplatform.org/joaquin102/32/1661_2.png) [@joaquin102](https://community.parseplatform.org/u/joaquin102)\
**Post date:** [September 6, 2023, 2:41am UTC](https://community.parseplatform.org/t/unable-to-implemented-parselivequery-on-ios-always-get-cannot-decode-json-into/3620/1 "2023-09-06T02:41:07Z")

</div>

I have a parse server implementation and I’m using an iOS app to interact with the server. Everything works as expected except **ParseLiveQuery**.

This is the implementation I have:

For simplicity purposes, the subscription to ParseLiveQuery is on the appDelegate right after the parse SDK is initialized:

```auto
Parse.Initialize(with: configuration); //appId, clientKey, server

//ParseLiveQuery
let query = Test.query()!.whereKey("isActive", equalTo: true);

let subscription = Client.shared.subscribe(query);
    
subscription.handle(Event.updated) { query, parseObject in

      print("\(parseObject)")
}

```

The Test object is just a simple swift Test class:

```auto
class Test: PFObject, PFSubclassing{
    static func parseClassName() -> String {
        return "Test";
    }

    @NSManaged var isActive:Bool;
}

```

Looking around it says I need to subclass using **PFObject** and also conform to **PFSubclassing**.

So when I go into the Parse Dashboard and I update this “Test” object, I see a trigger on the app side but with an error saying "cannot decode json into "

[![enter image description here](https://parse-community-forum-uploads.s3.dualstack.us-east-1.amazonaws.com/original/2X/0/0f277266fdc2d83a37a3b477a9ae62158fb41d44.jpeg)](https://i.stack.imgur.com/OoyLo.png)

I think I must be missing something basic about ParseLiveQuery since I can’t find anything about this anywhere.

I appreciate any help with this issue!

SO: [swift - Unable to get Parse iOS SDK LiveQuery to work. Always get "cannot decode json into" - Stack Overflow](https://stackoverflow.com/questions/77046879/unable-to-get-parse-ios-sdk-livequery-to-work-always-get-cannot-decode-json-in)
