Forums > MaxMSP

Trying to convert Json / jit.text into plain text

August 7, 2012 | 2:28 pm

HI All,

I’m using a jit.uldl object to download a json file from twitter into a jit.textfile. I cant work out a way of converting the jit.text output into plain text. Has anyone got any thoughts on how i could do this? Cheers.

here is the patch im using:

– Pasted Max Patch, click to expand. –

August 7, 2012 | 8:53 pm

Sorry for the vague question everyone. Just found an online json decoder (http://www.freeformatter.com/json-formatter.html#ad-output) and realise that i will still have to parse the text in some way to extract the information i’m after. I only want the string of text with the "name" prefix as text. I heard the regexp object might help with this…

here is an example of the text generated:

"url": "http://twitter.com/search/%23ThoughtsDuringSchool",
"query": "%23ThoughtsDuringSchool",
"name": "#ThoughtsDuringSchool",
"promoted_content": null,
"events": null


August 7, 2012 | 11:57 pm

I found a solution! here: http://cycling74.com/forums/topic.php?id=41843


Viewing 3 posts - 1 through 3 (of 3 total)