views:

185

answers:

4

I thought this was Javascript... but parser is giving me trouble. Any ideas?

for (;;);
{"error":0,"errorSummary":"","errorDescription":"","errorIsWarning":false,"silentError":0,"payload":{"collections":
[{"name":"bcm","type":"flp","filter":"flp_662923563701","value":"662923563701","editable":true,"deletable":true,"members":
["1319651388","539562714","710814793","569071038","1553739575","2413243"]},
{"name":"mstp","type":"flp","filter":"flp_715806870131","value":"715806870131","editable":true,"deletable":true,"members":
["1263807225","1159429816","508447486","508005223","1234906348","642723993","552875889","23401888","10701320","8302901","7931988","3007490","1286522890","1128447272","1076062553","775679867","737520202","640799498","224400055","224400048","14211567","7909445","3005965","2404364","218216","660037273","224400089","73306230","9603033","1111694","1034418884","775680513"
,"704526828","518753881","512477182","224400016","24904610","19000876","5403952","3005641","2100348","100000421128298","1445411167","691445174","1020020100","795471177","683724539","682441089","532450522","224400129","224400005","3006522","2246813","1302265","7197","1900494",
"100000474978266","2533582","1205125","1384091677","1260996959","710814793","514951289","224400164","224400156","173601800","13304723","7938844","3004783","3001379","302817","716739950
","706849","1418109424","562676898","82501644","3007569","13173"]},
{"name":"mystery","type":"flp","filter":"flp_687949656211","value":"687949656211","editable":true,"deletable":true,"members":
["100001286464748","508123007","100001161894460","1148567030","1048974191","769992391","831734347","15347","1297180076","756692945","3005266","733396195","34410910","100000940154241","
748426280","569417581","1318922027","100000164920046","1475269609","1436536592","10000016210
8385","754095305","100000421128298","537833189","100000692471928","7920231","673753496","3006217","1221878","8365333","1128447272","224400133","218216","505457123","1421958541","183829
5926","2349408","1622810085","1201640391","510959992","23429895","542118016","1017385668","586225579","625100539","100000474886633","26404148","1384091677","224400156","806908635","843
187401","400435","768261176","7901808","748496482","1541469473","2511982","25401573","503715
506","1226000844","559195162","41400094","1099436201","409816","1584400985","1577092523","100000349351880","199301581"]},{"name":"SMS 
Subscriptions","type":"ms","filter":"ms","value":"3","editable":true,"deletable":false,"members":[]}],"current_view":false}}
A: 

Looks like: http://www.json.org/example.html

Misha

Misha Koshelev
Please don't add this as an answer, unless it actually is an answer. Make adjustments to you original question if you need to supply more information.
Alastair Pitts
And mark the right answer accepted.
BalusC
Got it. Thank you!
Misha Koshelev
A: 

Certainly looks like javascript to me. Though it's odd that there's an infinite loop at the top:

for (;;);
Dean Harding
See: http://stackoverflow.com/questions/856045/how-to-restrict-json-access#answer-856084
Greg Hewgill
+7  A: 

Yep, just JSON, though as others have noted the infinite loop at the top is troublesome. Here's what it looks like cleaned up, courtesy of jsbeautifier.org:

for (;;);
{
  "error": 0,
  "errorSummary": "",
  "errorDescription": "",
  "errorIsWarning": false,
  "silentError": 0,
  "payload": {
    "collections": [{
      "name": "bcm",
      "type": "flp",
      "filter": "flp_662923563701",
      "value": "662923563701",
      "editable": true,
      "deletable": true,
      "members": ["1319651388", "539562714", "710814793", "569071038", "1553739575", "2413243"]
    }, {
      "name": "mstp",
      "type": "flp",
      "filter": "flp_715806870131",
      "value": "715806870131",
      "editable": true,
      "deletable": true,
      "members": ["1263807225", "1159429816", "508447486", "508005223", "1234906348", "642723993", "552875889", "23401888", "10701320", "8302901", "7931988", "3007490", "1286522890", "1128447272", "1076062553", "775679867", "737520202", "640799498", "224400055", "224400048", "14211567", "7909445", "3005965", "2404364", "218216", "660037273", "224400089", "73306230", "9603033", "1111694", "1034418884", "775680513", "704526828", "518753881", "512477182", "224400016", "24904610", "19000876", "5403952", "3005641", "2100348", "100000421128298", "1445411167", "691445174", "1020020100", "795471177", "683724539", "682441089", "532450522", "224400129", "224400005", "3006522", "2246813", "1302265", "7197", "1900494", "100000474978266", "2533582", "1205125", "1384091677", "1260996959", "710814793", "514951289", "224400164", "224400156", "173601800", "13304723", "7938844", "3004783", "3001379", "302817", "716739950", "706849", "1418109424", "562676898", "82501644", "3007569", "13173"]
    }, {
      "name": "mystery",
      "type": "flp",
      "filter": "flp_687949656211",
      "value": "687949656211",
      "editable": true,
      "deletable": true,
      "members": ["100001286464748", "508123007", "100001161894460", "1148567030", "1048974191", "769992391", "831734347", "15347", "1297180076", "756692945", "3005266", "733396195", "34410910", "100000940154241", "748426280", "569417581", "1318922027", "100000164920046", "1475269609", "1436536592", "100000162108385", "754095305", "100000421128298", "537833189", "100000692471928", "7920231", "673753496", "3006217", "1221878", "8365333", "1128447272", "224400133", "218216", "505457123", "1421958541", "1838295926", "2349408", "1622810085", "1201640391", "510959992", "23429895", "542118016", "1017385668", "586225579", "625100539", "100000474886633", "26404148", "1384091677", "224400156", "806908635", "843187401", "400435", "768261176", "7901808", "748496482", "1541469473", "2511982", "25401573", "503715506", "1226000844", "559195162", "41400094", "1099436201", "409816", "1584400985", "1577092523", "100000349351880", "199301581"]
    }, {
      "name": "SMS Subscriptions",
      "type": "ms",
      "filter": "ms",
      "value": "3",
      "editable": true,
      "deletable": false,
      "members": []
    }],
    "current_view": false
  }
}
Jordan
+4  A: 

The infinite loop is a way to restrict access. For more information, see fearphage's answer to a related question.

Gert G
Very weird. In any case I just strip it out and use http://json-lib.sourceforge.net/apidocs/jdk15/net/sf/json/groovy/JsonSlurper.htmlActually had to convert result to XML for my benefit.
Misha Koshelev