<?php $data = [ 'id' => 1, 'content' => 'бла-бла-бла'];echo json_encode($data);
Standard input is empty
{"id":1,"content":"\u0431\u043b\u0430-\u0431\u043b\u0430-\u0431\u043b\u0430"}
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!