Adding JSON to PHP conversion

@Badkill did I copy this correctly?