Skip to content

Instantly share code, notes, and snippets.

@nickserv
Last active December 19, 2015 03:19
Show Gist options
  • Save nickserv/6c711c4a3de4e2e6ca91 to your computer and use it in GitHub Desktop.
Save nickserv/6c711c4a3de4e2e6ca91 to your computer and use it in GitHub Desktop.
Data format examples

Original Data in Ruby

{
  "a" => 1,
  "b" => 2,
  "c" => 3,
  "d" => [1, 2, 3]
}

JSON

{
  "a": 1,
  "b": 2,
  "c": 3,
  "d": [1, 2, 3]
}

TOML

a = 1
b = 2
c = 3
d = [1, 2, 3]

XML

<a>1</a>
<b>2</b>
<c>3</c>
<d>
  <d1>1</d1>
  <d2>2</d2>
  <d3>3</d3>
</d>

YAML

a: 1
b: 2
c: 3
d:
  - 1
  - 2
  - 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment