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 738 posted 11 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0 345 posted 11 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 471 posted 11 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 578 posted 11 years ago by iroybot
2 504 posted 12 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 443 posted 12 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 691 posted 12 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 582 posted 12 years ago by FMalk
copy from google code search result page
0 373 posted 12 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 597 posted 12 years ago by mikemore
0 493 posted 12 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 950 posted 12 years ago by liamchapman
1 635 posted 12 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 616 posted 12 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 450 posted 12 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 441 posted 12 years ago by mloberg
2 491 posted 12 years ago by mloberg
Get the latest 5 titles from the Tumblr API using jquery
0 555 posted 12 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 580 posted 12 years ago by harikaram
usage; $.toJSON($(\'form\').serializeObject());
3 512 posted 12 years ago by virgil
Tumblr API: http://www.tumblr.com/docs/de/api
0 377 posted 12 years ago by ichnoweb
Don't know if the code is working, it's written from memory, but I think it will work....
1 435 posted 12 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 582 posted 12 years ago by eddequincey
Notes to self: re-use this for other projects
0 889 posted 12 years ago by abbey
3 452 posted 12 years ago by bitmanic