Difference between revisions of "Exploring data formats"

From Kosmos Wiki
Jump to navigation Jump to search
Line 6: Line 6:
  
 
   {
 
   {
     testing: 'code block'
+
     ...
 +
    "context": "irc",
 +
    "@type": "observe",
 +
    "actor": {
 +
      "@id": "irc://howard@irc.freenode.net",
 +
      "displayName": "howard"
 +
    },
 +
    "object": {
 +
      "@type" : "credentials",
 +
      "nick": : "howard",
 +
      "password": "radical",
 +
      "server": "irc.freenode.net",
 +
      "port": 1234,
 +
      "secure": true,
 +
      "altNicks": [ "howardtheduck", "famousduck" ] // this property would need to be added to the schema
 +
    }
 
   }
 
   }

Revision as of 15:30, 5 June 2015

Methods of structuring data

Server Credentials

AS2

 {
   ...
   "context": "irc",
   "@type": "observe",
   "actor": {
     "@id": "irc://howard@irc.freenode.net",
     "displayName": "howard"
   },
   "object": {
     "@type" : "credentials",
     "nick": : "howard",
     "password": "radical",
     "server": "irc.freenode.net",
     "port": 1234,
     "secure": true,
     "altNicks": [ "howardtheduck", "famousduck" ] // this property would need to be added to the schema
   }
 }