PHP to JSON working.