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 962 posted 13 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0 453 posted 13 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 616 posted 13 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 727 posted 13 years ago by iroybot
2 704 posted 13 years ago by simondiercks
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 576 posted 13 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 846 posted 13 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 732 posted 13 years ago by FMalk
copy from google code search result page
0 485 posted 13 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 753 posted 13 years ago by mikemore
0 648 posted 13 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 1171 posted 13 years ago by liamchapman
1 789 posted 13 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 806 posted 13 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 634 posted 13 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 572 posted 13 years ago by mloberg
2 646 posted 13 years ago by mloberg
Get the latest 5 titles from the Tumblr API using jquery
0 704 posted 13 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 697 posted 13 years ago by harikaram
usage; $.toJSON($(\'form\').serializeObject());
3 671 posted 13 years ago by virgil
Tumblr API: http://www.tumblr.com/docs/de/api
0 512 posted 13 years ago by ichnoweb
Don't know if the code is working, it's written from memory, but I think it will work....
1 560 posted 13 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 763 posted 14 years ago by eddequincey
Notes to self: re-use this for other projects
0 1125 posted 14 years ago by abbey
3 604 posted 14 years ago by bitmanic