Fixed JSON auto export not working and added JSON support for PHP < 5.4.0

https://github.com/AdvancedCustomFields/acf5-beta/issues/43
Signed-off-by: Elliot Condon <e@elliotcondon.com>