Welcome To Snipplr


Everyone's Recent Snippets Tagged json



Updated code (December, 2012) to get a tweet from a user's twitter timeline using JSON and jQuery
3 2100 posted 15 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0 1266 posted 15 years ago by eddequincey
I wanted to pass a form submission (array) as a JSON object to another function. Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc. In order to access values of that JSON obj I needed to...
1 1797 posted 15 years ago by iroybot
I wanted to pass a form submission (array) as a JSON object to another function. Some form field were created with JS, to identify them their names have been concatenated with unique IDs, etc. In order to access values of that JSON obj I needed to...
0 1670 posted 15 years ago by iroybot
2 1796 posted 15 years ago by simondiercks
0 1402 posted 15 years ago by dropthenerd
Make sure Jackson core and Mappers are on classpath. So who can explain why userImage has a size of 7. I assume the byte-Array is encoded. What format?
0 1384 posted 15 years ago by hansamann
Check if a string it's json encoded using regular expressions Thanks to Jens Anders Bakke for his mootools code published in webfreak.no http://webfreak.no/wp/2007/09/07/jsontest-for-mootools/
0 1752 posted 15 years ago by jatubio
The filter only needs to know which requests need to be returned as JSONP, doesn't care how. Modify "OnBeginRequest" accordinly. If original .asmx doesn't return JSON, extend it like example shows. JSONP only works for GET requests, so don't forget...
0 1520 posted 15 years ago by FMalk
copy from google code search result page
0 1125 posted 15 years ago by sospartan
0 1439 posted 15 years ago by whak
As of my ongoing preparation for the 1K tweet :) I was interested to see the 1000th tweet from some friends timeline. And when I didn't find an existing method, I thought I could write few jQuery lines to solve this..
1 1721 posted 15 years ago by mikemore
0 1516 posted 15 years ago by wnasich
Simple function to store an array in a cookie. Uses JSON. To pull data out of cookie use 'json_decode()'. It can then be looped etc.
1 2249 posted 15 years ago by liamchapman
1 1794 posted 15 years ago by mloberg
A Twitter pull-in that I coded using PHP. Uses the JSON user_timeline Twitter API call. It displays the tweet with links to any urls, users, or hashtags, the time ago, and if it was in reply to anyone.
2 1905 posted 15 years ago by mloberg
This is a two file video player. I use JSON to get the list of videos from a user, then when a thumbnail is clicked, an AJAX request is sent with the id of the video, and an oEmbed response is sent back.
4 1611 posted 15 years ago by mloberg
This is a very simple use of the Vimeo API. All it does is list the video title, a thumbnail of the video, and the description. More advance script coming later.
0 1402 posted 15 years ago by mloberg
2 1786 posted 15 years ago by mloberg
Get the latest 5 titles from the Tumblr API using jquery
0 1641 posted 15 years ago by morningcatmedia
Say you want to run content plugins on JDocumentRAW content (like in a component that returns JSON data). Some methods in JDocumentHTML like "addCustomTag" will cause the app to fail on JDocumentRAW doc types which don't have this method. Thus you...
0 1689 posted 15 years ago by harikaram
usage; $.toJSON($(\'form\').serializeObject());
3 1753 posted 15 years ago by virgil
Tumblr API: http://www.tumblr.com/docs/de/api
0 1251 posted 15 years ago by ichnoweb
Don't know if the code is working, it's written from memory, but I think it will work....
1 1482 posted 15 years ago by sbglasius
Need to download the ActionScript 3.0 library http://code.google.com/p/as3corelib/ and extract the "com" folder into the same folder as your .fla file.
1 1751 posted 16 years ago by eddequincey
Notes to self: re-use this for other projects
0 2316 posted 16 years ago by abbey
3 1398 posted 16 years ago by bitmanic