How to take out int value from JSON object : i'm working with Laravel 5 right now and i'm stuck with this problem. I've got response from DB query : 

[{"id":1}] 

and i want to take out 1 as int or string. Any ideas?