Skip navigation
DougOsborne
Currently Being Moderated

Need to retrieve JSON data in asc file

Dec 22, 2011 8:03 AM

Tags: #json #fms_4.0 #asc

Hi everyone,

 

In an asc file, I am trying to retrieve some data from a server that uses JSON as its exchange format each time someone connects to a specific application. ( I can't control the exchange format)

To do that I send a POST using the sendAndLoad method of a LoadVars Object.

So far I only managed to get the HTTP header. The target object from the sendAndLoad method seems to be empty .

 

The response format from the server is like this :

 

{"result":{"uid":"24947431041778945007157724608309","sid":"20825068196 030559827758762683967"}}   (I got it by doing a POST with cURL)

 

Since the data doesn't have the "attribute=value&attribute2=value2..."  format, I think I will not be able to get them.

Does anyone know if it is possible to first get and then parse these data using either ServerSide ActionScript's API

or another good method .

 
Replies
  • Currently Being Moderated
    Aug 26, 2013 3:55 PM   in reply to DougOsborne

    I know it's pretty late, but just posting a helpful resource for anyone else bumping into this thread. Here's a JSON parser which is working quite nicely for me till now: http://qops.blogspot.in/2009/12/flash-media-server-json.html

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points