NetTalk Central

Author Topic: JSON  (Read 2353 times)

Nick

  • Full Member
  • ***
  • Posts: 118
    • View Profile
    • Email
JSON
« on: September 29, 2013, 12:13:06 PM »
How do I return JSON properly?
I capture the request (from a jqQuery grid), setup the JSON and return by filling the packet string with it and do a do SendPacket.
It works fine, the grid shows the data but the actual source-code is replaced by the data so that a reload with F5 or the like
shows only the data and the structure is gone.
I guess the browser has to know that this is a JSON return somehow?
Should I set a content=application/json somewhere??
What am I missing?

TIA,
Nick