Add a loadJSON function to helpers.inc.php

It’s handling is similar to sfYaml::load();
input string —> output array
added shared.json support

TODO: clenup, remove shared_kind Array
ignore JSON media

TODO: add support back for JSON, as an API
[clean] remove shared_kind Array
fix _shared.yml detection
Add contentType helper

detect the text content format JSON | YML | TXT | false
[clean] externalize detection of type

remove possible memoryleak (switch create_function for anonymous
function)
updated shared.json

to include email link
added template detection for json files
changed project 1 for using JSON

first test
Merge pull request #1 from kunstdesign/json

Json