I don't think this is JSON...
-
So, I'm trying out my Discourse library. I run the unit test, and get slapped in the face:
System.ArgumentException: Invalid JSON primitive: error.
Okay, back to Fiddler, and let's see what happens. I check the headers:
Content-Type: application/json; charset=utf-8
So that's good, the content is JSON, but what gets sent?
[error: 'invalid access']
It's an object! No, it's an array! No, it's... what the fuck were they thinking?
-
It's a key-value pair
-
It's a key-value pair
Which is only legit in an object in JS, that is an array, not an object.
-
Which is only legit in an object in JS, that is an array, not an object.
It could be an array of key-value pairs, like all PHP arrays. It's just that this one is an array of one element
-
Not in JS it isn't.
-
It's just wrong. That unquoted word 'error' is not allowed in the json spec either. I should know, I implemented it once.
-
It's a key-value pair
That's `{'error': 'invalid access'} in JSON
It could be an array of key-value pairs
That's [{'error': 'invalid access'}] in JSON
-
and the single quotes are also verboten. they need to be double quotes!
-
My guess is, someone did err.toString() instead of JSON stringify.
-
are also verboten
you mean VERBOTEN!
It is by no means a nice question if it is VERBOTEN! It implies your disobedience will be punished the German way.
-
It is by no means a nice question if it is VERBOTEN! It implies your disobedience will be punished the German way.
What, with precision and efficiency?
-
yes, and your point?
/me gestures to the ranks of tanks behind me and a surprisingly large air force performing close maneuvers overhead.
-
-
-
so you want i should attack now?
-
-
the tanks? the bombers, the entire war machine i have behind me..... should i attack because someone did something verboten? or is now not the time?
-
By all means ... Just drive around BELGIUM this time
-
but the whole point of this war machine was to wipe that country off the map, right down to the bedrock (and probably several metres further down so the ailiens will visit again!
-
-
with luck anyone but the vogons.
-
and the single quotes are also verboten. they need to be single quotes!
They need what now?
-
they need to be double quotes.
edited my post to avert a stack overflow as verboten activity recurses.
-
-
-
lowercase. the uppercase is a monstrosity unto codethulu.
not the code, that's actually halfway decent, but the community and the answers.. they are offerings unto the elder goddess of evil that is Codethulu.
-
lowercase. the uppercase is a monstrosity unto codethulu.
not the code, that's actually halfway decent, but the community and the answers.. they are offerings unto the elder goddess of evil that is Codethulu.
As long as you only hit it from Google, you're good. On the front page, though, it's madness and horrors.
-
Even from google, if your coworkers are treating it as gospel...
-
i've asked that site be added to our network firewall block list. i was laughed out of the room.....
-
As long as you only hit it from Google, you're good. On the front page, though, it's madness and horrors.
Oddly enough, I don't think I've ever seen the front page that I can recall. I've only ever gotten there from Googling a specific question.
-
You're not missing anything worthwhile. I use selected tag pages as my usual entry points (where I'm not googling something specific).
-
Even from google, if your coworkers are treating it as gospel...
Most of my cow-orkers don't know it exists.
-
You're not missing anything worthwhile.
So I gathered from this statement:
On the front page, though, it's madness and horrors.
-
You're not missing anything worthwhile. I use selected tag pages as my usual entry points (where I'm not googling something specific).
Relevant:
-
For no reason I can discern, Discourse suddenly said this thread had unread messages.
(What I can't discern is the suddenly part. Why did it wait until this afternoon?)
-
I linked to it somewhere. Also got my post liked, for that matter.
-
Wat
-
I linked to it somewhere. Also got my post liked, for that matter.
https://what.thedailywtf.com/t/crappy-server-panel-code/50051/2, looks like.
-
i am outraged all over again.