Questions tagged [json]

The tag has no usage guidance.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
0
votes
0answers
24 views

Request throwing JSON error

I'm having a very strange problem. This code, which was working perfectly yesterday, is now throwing the error - File "/usr/local/lib/python3.9/json/decoder.py", line 355, in raw_decode ...
0
votes
0answers
141 views

Mail Project 3 CS50W - Cannot Send Mail

I am stuck on CS50W's Project 3 Mail. I'm very new to JavaScript so I think I'm probably missing something obvious but I cannot get it to send an email. When I go to the admin section there's nothing ...
0
votes
1answer
37 views

(Android Track - Pokedex) Why does my PokeAPI request return the current time instead of the pokemon's description?

I'm working on fetching the description of the Pokemon in Pokedex (from the Android Track) and used the JsonObjectRequest to do so. The app fetches the correct description and displays it, but after a ...
0
votes
1answer
298 views

CS50w / Project 3 - Mail / Inbox showing duplicates

I'm currently on Project 3 in CS50 Web and pretty much completed it. However, there seems to be a bug in unarchiving emails. Whenever I click the unarchive button and it reloads the Inbox, there seems ...
0
votes
0answers
3k views

raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@app.route('/api/<string:isbn>', methods = ['GET']) def isbn(isbn): #import api from Goodreads (stats) book_data = db.execute("SELECT * FROM books WHERE isbn=:isbn",{'isbn':isbn})....
0
votes
0answers
187 views

pset8 mashup How To Work With The JSON Object?

As the title says, I'm having troubles about how to work with the returned data from the /articles route. My question is about accessing key->value pairs of the JSON Object. When I manually search ...
0
votes
1answer
249 views

Can't get articles on my marker, and city markers are persisting

function addMarker(place) { // Create marker var marker = new google.maps.Marker({ position: {lat: place.latitude, lng: place.longitude}, map: map, title: place["...
0
votes
0answers
318 views

pset8 mashup troubles

So I am having trouble understanding how json works my Json is not outputting any of of the articles through the infowindow does anyone here know what problems I am causing? Ill first show my code in ...
0
votes
0answers
54 views

PSET8: dealing with empty infoWindows

My infoWindows are working fine when there is text to be displayed in them, but I'm struggling with empty infoWindows. The code I tried to use to implement the empty window functionality is below: $....
0
votes
1answer
267 views

pset8 addMarker JSON question

I'm struggling with pset8 quite a bit during the addMarker function. I try to access the JSON object returned from articles() but I can't seem to understand how to access it. I've tried JSON.parse(),...
0
votes
1answer
203 views

pset8 addMarker() - Problem displaying <ul> in the google maps textbox

I'm having a hard time figuring out why my function doesn't show the unordered list in the marker's info box but instead it does display "[object HTMLUListElement]". console.log(list) confirms that ...