Fork me on GitHub

The OSync Specification

Why OSync?

Sure we have RSS, RDF, and Atom which I have been working with for many years. There is one big issues with these formats… They all use XML which tends to be wordy and more importantly XML is overly complex to parse especially in languages like Javascript, PHP, Ruby and Python. However JSON thankfully is!

While developing this format I set out with the following goals:

Specification

Main Elements

Globals

Location

Categories

Items

Author

Attachments

Example

{
        "updatedDate": "2009-08-05T12:17Z",
        "subtitle": "Content Syndcation via JSONP",
        "id": "c4dfcb75-8cd5-47e1-8a09-b19141ec2df8",
        "lang": "en",
        "title": "News about OSync",
        "image": "http://www.osync.org/media/osync-600x600.jpg",
        "generator": "TextMate http://macromates.com/",
        "permalinkUrl": "http://www.osync.org",
        "summary": "All the news you can use about your favorite new web syndication format OSync",
        "copyrite": "Creative Commons Attribution-Noncommercial-No Derivative Works 3.0",
        "copyriteImage": "http://creativecommons.org/images/public/somerights20.png",
        "postedTime": "2009-08-05T11:17Z",
        "thumbnail": "http://www.osync.org/media/osync-32x32.jpg",
        "categories": [
            "web",
            "formats",
            "specifications"
        ],
        "location": {
            "name": "Funky Thai",
            "address": "2383 Dundas Street West",
            "city": "Oakville",
            "state": "Ontario",
            "zip": "L6M3X2",
            "latitude": 43.439957,
            "longitude": -79.772072
        },
        "items": [
            {
                "updatedDate": "2009-08-05T11:17Z",
                "body": "We lauched OSync today! we had a big party and it was all kinds of fun. I hope you like it!",
                "id": "fd8e3a0e-5786-4583-9baa-bb65537eed70",
                "title": "OSync Launched!",
                "author": {
                    "email": "ray.slakinski@gmail.com",
                    "name": "Ray Slakinski",
                    "permalinkUrl": "http://www.slakinski.com"
                },
                "sources": [
                    "http://www.osync.org"
                ],
                "permalinkUrl": "http://www.osync.org/posts/osync-launched",
                "location": {
                    "name": "Funky Thai",
                    "address": "2383 Dundas Street West",
                    "city": "Oakville",
                    "state": "Ontario",
                    "zip": "L6M3X2",
                    "latitude": 43.439957,
                    "longitude": -79.772072
                },
                "exeprt": "We lauched OSync today!",
                "postedTime": "2009-08-05T11:17Z",
                "categories": [
                    "web",
                    "formats",
                    "specifications"
                ],
                "attachments": [
                    {
                        "hash": "md5-6c6d81147f00bd6adb710d22bfe69f05",
                        "id": "25746ef0-b362-4d38-b4e6-a0443c634d7e",
                        "postedTime": "2009-08-05T11:17Z",
                        "explicit": false,
                        "permalinkUrl": "http://www.osync.org/pcasts/osync-podcast-01.mp3",
                        "filename": "osync-podcast-01.mp3",
                        "duration": 923282,
                        "type": "audio/mpeg",
                        "hidden": false,
                        "bytes": 228223
                    }
                ]
            }
        ]
    }
    

Creative Commons License