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 1511 posted 14 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0 833 posted 14 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 1039 posted 14 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 1152 posted 14 years ago by iroybot
2 1164 posted 14 years ago by simondiercks
0 1001 posted 14 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 1001 posted 14 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 1256 posted 14 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 1117 posted 14 years ago by FMalk
copy from google code search result page
0 798 posted 14 years ago by sospartan
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 1215 posted 14 years ago by mikemore
0 1056 posted 14 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 1605 posted 14 years ago by liamchapman
1 1228 posted 14 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 1233 posted 14 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 1107 posted 14 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 971 posted 14 years ago by mloberg
2 1087 posted 14 years ago by mloberg
Get the latest 5 titles from the Tumblr API using jquery
0 1135 posted 14 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 1155 posted 14 years ago by harikaram
usage; $.toJSON($(\'form\').serializeObject());
3 1040 posted 14 years ago by virgil
Tumblr API: http://www.tumblr.com/docs/de/api
0 873 posted 14 years ago by ichnoweb
Don't know if the code is working, it's written from memory, but I think it will work....
1 977 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 1211 posted 15 years ago by eddequincey
Notes to self: re-use this for other projects
0 1642 posted 15 years ago by abbey
3 1018 posted 15 years ago by bitmanic