Using the open source version of Parse Server as a back end, my Android application saves objects to the server's DB in the form of key-value pairs encoded as JSON. However, when trying to retrieve the same object from an Ionic 2 app using the JS Parse API, I encounter difficulties. Objects created in the JS API are saved as plain text, resulting in a "101 Object not found" error.
It seems that the challenge lies in translating Parse plain text objects to Parse JSON objects. I have attempted a few solutions:
I explored the toJSON() method in the JS Parse documentation, but encountered errors such as "this.parse.Object.extend(...).toJSON is not a function."
Applying standard JSON API methods like JSON.stringify also led to an error: "ParseQuery must be constructed with a ParseObject or class name."
Despite thorough research online, I have not been able to find a helpful solution.
If anyone has any ideas on how to address this issue, your input would be greatly appreciated.