Skip to content

Instantly share code, notes, and snippets.

View pigeonhands's full-sized avatar
👻

Sam pigeonhands

👻
  • 2degrees
  • New Zealand
  • 10:20 (UTC +12:00)
View GitHub Profile
<?php
$data = array();
//This is an associative array with named keys as indexes
$data['Version'] = '1.0.0.0';
$data['Hash'] = '85f6ee768c10f9c09931a6ae2a94a395';
$data['Addition'] = 'Implemented multi threading, remove redundant code';
$data['Link'] = '/update/myapp.exe';
@pigeonhands
pigeonhands / JsonUtil.cs
Last active August 29, 2015 14:24 — forked from trcio/JsonUtil.cs
using System.Runtime.Serialization.Json;
using System.IO;
using System.Text;
public static class JsonUtil
{
/// <summary>
/// Serializes an object to the respectable JSON string.
/// </summary>
public static string Serialize<T>(T o)