Problem with quotation marks in JSON

-1

I'm running an application that reads a result in JSON. I recently changed my server and noticed that the application stopped working. After several tests I discovered that my new server put quotation marks on some values, disabling the application.

To illustrate, I have both results in JSON, one that works and the other does not:

  

JSON - Works in the application   [1, "userId": 1, "start": "1413972000000", "end": "1413979200000", "title": "9,10,11,12" "name": "Test"}]

against:

  

JSON - Does not work in the application   [{"id": "1", "start": "1413972000000", "end": "1413979200000", "title": "9,10,11,12", "scheduling_status": "1", "userId ":" 1 "," name ":" Test "}]

I noticed that the difference is only due to the quotation mark. Is there any way to standardize this?

    
asked by anonymous 28.10.2014 / 23:03

1 answer

0

I solved the problem by installing php-mysqlnd:

sudo apt-get install php5-mysqlnd
sudo /etc/init.d/apache2 restart
    
28.10.2014 / 23:26