Welcome To Snipplr
Everyone's Recent Snippets Tagged json
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Updated code (December, 2012) to get a tweet from a user's twitter timeline using JSON and jQuery
3
760
posted 12 years ago by eddequincey
Found that the webmonkey tutorial code didn't work as double quotes were used around JSON string.
0
362
posted 12 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
483
posted 12 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
591
posted 12 years ago by iroybot
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
460
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
712
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
600
posted 12 years ago by FMalk
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
616
posted 12 years ago by mikemore
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
979
posted 12 years ago by liamchapman
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
637
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
471
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
454
posted 12 years ago by mloberg
Get the latest 5 titles from the Tumblr API using jquery
0
573
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
587
posted 12 years ago by harikaram
Don't know if the code is working, it's written from memory, but I think it will work....
1
450
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
599
posted 13 years ago by eddequincey