I am doing rest API call and getting array of object. It is returning integer data type on localhost for id
and customer_id
.
- While returning strings for
id
andcustomer_id
[{"id":4,"name":"x","customer_id":5}]
- On hosted server. Why different behavior ?
[{"id":"4","name":"x","customer_id":"5"}]