JSON server receiving form-encoded data

JSON server receiving form-encoded data

confundidoconfundido Posts: 15Questions: 5Answers: 0

Noticed I was getting form-encoded data to my JSON server page:

HTML page: https://www.freecell.net/f/c/dbscores1.html?flavor=day&game=8x4

(Things are pretty broken at the moment cuz I'm trying to sort out the content type thing)

confundido

Answers

  • confundidoconfundido Posts: 15Questions: 5Answers: 0

    Holy crud, figured it out. Man, kinda a weird hoop to jump thru to get JSON to a JSON source. Seems like JSON would be the default cuz we're speaking JSON.

    From docs here:

           ajax: {
                url: "/f/fcv.p",
                type: "POST",
                data: function ( d ) {
                    return JSON.stringify( d );
                }
            },
    
This discussion has been closed.