<?php var_dump(json_decode( '{"id":"30"}' ));var_dump(json_decode( '{"id":"30"}', true ));
Standard input is empty
object(stdClass)#1 (1) { ["id"]=> string(2) "30" } array(1) { ["id"]=> string(2) "30" }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!