Clearwind

JSON Tools

These are experimental services for returning JSON strings to useful things. Most have JSONP wrappers.

Title Args Examples

User agent parser

Parses useragent string in browsers returning hopefully useful information

Base: /useragent, source

callback (optional) JSONP callback name

ua (optional) user agent string, if not provided uses one from request

/useragent...
/useragent?callback=useragent...
/useragent?callback=useragent&ua=Mozilla...

Text normalizer

Converts UTF-8 text into ASCII equivalents, lower cases and replaces spaces

Base: /normalize, source

text utf-8 text to normalize

/normalize?text=Österreich%20has%20GREAT...
/normalize?callback=result&text=Österrei...

Fuzzy time difference generator

Compares time1 to time2 (or now) and produces a fuzzy time difference, eg 2 hours

Base: /fuzzydate, source

callback (optional) JSONP callback name

start (required) date and time in the following format: %Y-%m-%d %H:%M:%S, for example: 2008-10-06 12:32:52

end (optional) date and time in the following format: %Y-%m-%d %H:%M:%S, for example: 2008-10-06 22:32:52. If not provided uses current date time.

/fuzzydate?start=2008-10-06 12:32:52...
/fuzzydate?start=2008-10-06 12:32:52&end...
/fuzzydate?start=2008-10-06 12:32:52&cal...