Cannot Use String Offset As An Array Php To Json Converter To Text