Click here to Skip to main content
14,872,321 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralSoftware should not work this way Pin
Sander Rossel12-May-18 1:40
professionalSander Rossel12-May-18 1:40 
QuestionRe: Software should not work this way Pin
Eddy Vluggen12-May-18 1:45
professionalEddy Vluggen12-May-18 1:45 
AnswerRe: Software should not work this way Pin
OriginalGriff12-May-18 2:01
mveOriginalGriff12-May-18 2:01 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 2:07
professionalEddy Vluggen12-May-18 2:07 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 2:12
professionalSander Rossel12-May-18 2:12 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 2:20
professionalEddy Vluggen12-May-18 2:20 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 2:34
professionalSander Rossel12-May-18 2:34 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 2:39
professionalEddy Vluggen12-May-18 2:39 
Sander Rossel wrote:
The browser posts a double as "1.2" in JSON (independent of culture I hope) and .NET Core does the deserialization (hopefully also independent of culture).
You mean it should magically assume the correct one? *

Sander Rossel wrote:
Even after changing my separator in Windows from comma to dot the deserialization only works with comma.
I'm just baffled that "1.2" is deserialized as 12 and only "1,2" is deserialized as 1.2 WTF | :WTF:
Baffle yourself some more and set it to some non-default character like a question mark. Doing so may break several applications at once, but is usefell during testing.

*) JSON is a string, and has a culture in which the number is expressed/encoded within that string. So it is not a double there. When deserializing, it has to know which culture the client is using.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.

GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 2:59
professionalSander Rossel12-May-18 2:59 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 3:09
professionalEddy Vluggen12-May-18 3:09 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 3:30
professionalSander Rossel12-May-18 3:30 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 3:32
professionalEddy Vluggen12-May-18 3:32 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 2:09
professionalSander Rossel12-May-18 2:09 
GeneralRe: Software should not work this way Pin
OriginalGriff12-May-18 2:22
mveOriginalGriff12-May-18 2:22 
AnswerRe: Software should not work this way Pin
Sander Rossel12-May-18 2:06
professionalSander Rossel12-May-18 2:06 
GeneralRe: Software should not work this way Pin
Eddy Vluggen12-May-18 2:08
professionalEddy Vluggen12-May-18 2:08 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 2:13
professionalSander Rossel12-May-18 2:13 
PraiseRe: Software should not work this way Pin
Eddy Vluggen12-May-18 2:26
professionalEddy Vluggen12-May-18 2:26 
JokeRe: Software should not work this way Pin
User 1106097912-May-18 3:16
MemberUser 1106097912-May-18 3:16 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 3:32
professionalSander Rossel12-May-18 3:32 
GeneralRe: Software should not work this way Pin
Clifford Nelson12-May-18 5:10
MemberClifford Nelson12-May-18 5:10 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 23:57
professionalSander Rossel12-May-18 23:57 
GeneralRe: Software should not work this way Pin
Marc Clifton12-May-18 12:31
mvaMarc Clifton12-May-18 12:31 
GeneralRe: Software should not work this way Pin
Sander Rossel12-May-18 23:56
professionalSander Rossel12-May-18 23:56 
GeneralRe: Software should not work this way Pin
Marc Clifton13-May-18 2:26
mvaMarc Clifton13-May-18 2:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.