Linked Questions

-1 votes
1 answer
1k views

JSON.parse(JSON.stringify(data)) returns an error: "Unexpected token u in JSON at position 0". I suspect JSON.parse(JSON.stringify(data)) returns an error because JSON.parse() ends before JSON....
Dan's user avatar
  • 31
0 votes
0 answers
240 views

I am trying to make authentication in react native app using auth0, I have form with username and password with submit button, I have three fetches api, the first fetch authenticate user name, ...
Tarif Aljnidi's user avatar
0 votes
0 answers
31 views

I have an object called organizationCustomizationOptions, which is a String. If I print that string without parsing it, I will get something like '{"name":"John", "age":...
Esteban Vargas's user avatar
16 votes
2 answers
28k views

I have spent a whole day on this, googling and searching for answers but still could not figure out. My code is a bit long and it works well in Firefox but gets "Uncaught SyntaxError: Unexpected ...
Dennisboys's user avatar
7 votes
2 answers
16k views

I'm using JSON.parse as a simple database on my computer with LocalStorage. It works smoothly until I'm doing the check of this "database"; heres the code for entering information to LocalStorage: ...
Juvi's user avatar
  • 1,338
4 votes
5 answers
5k views

As part of my ongoing effort to learn ReactJS I'm developing a simple page that will render a list of trends as follows: On clicking the button "Get Trends" the list of trends is retrieved ...
Hari N's user avatar
  • 167
3 votes
3 answers
2k views

I have a JSON data in dataList variable and I want to add this in custom handlebars helper as a parameter. var dataList = [ { "id": 1, "title": "Arrange meeting", "date": "Today 10:35 | ...
Varinder Sohal's user avatar
3 votes
2 answers
2k views

I am trying to get a cross-domain JSON data via $.ajax method $.ajax({ type: "GET", dataType: 'jsonp', url: "http://nrb.org.np/exportForexJSON.php?YY=2016&MM=06", ...
Nishan Hitang's user avatar
0 votes
2 answers
1k views

I am trying to send a push notification using my own API using below code. I am sure curl was enabled in my server. I am getting below as a response. $url = "http://efpushtest.meteor.com/api/...
Venkata Krishna's user avatar
0 votes
1 answer
762 views

I'm trying to post to my node server but I get a "Failed to load resource" 500 Internal Server Error code and I can't figure out why. Here is the error on what Node says. My server code: var db ...
Shane D'Silva's user avatar
0 votes
1 answer
318 views

I'm getting the response from my API like- 0: action: "Add" date: "2021-09-22T00:00:00" level: 1 module: "[Mode001]" oldRecord: "{\"Code\": 7,\"Name\&...
XenDex's user avatar
  • 23
0 votes
0 answers
283 views

I am making a simple script to write data from an input in cookies, the code works perfectly in a simple HTML: jsfiddle, when i pass the same code to wordpress I get the following error: Uncaught ...
ctovelox's user avatar
  • 119
0 votes
1 answer
277 views

When running all my tests together, the makeDocumentSnapshot call gives error SyntaxError: Unexpected token u in JSON at position 0 at firebase-functions-test/lib/app.js:41:65, which is basically that ...
Jack Guo's user avatar
  • 4,774
0 votes
0 answers
112 views

I have a Web API application that is set to respond to the GET verb with a string. When I test this in the browser I can see my JSON. I have validated my JSON response using a validation tool. The ...
Chris Lombardi's user avatar
1 vote
0 answers
90 views

I couldn't map the second API response https://api.coingecko.com/api/v3/global with error prompted (read property 'map' of undefined), while the first API is fine. Whats the issue here? export default ...
Humshark's user avatar

15 30 50 per page