Search code examples
phpsilex

Silex, how to set JSON_UNESCAPED_UNICODE in json()


In PHP I can use JSON_UNESCAPED_UNICODE in json_encode();

How I can do that in Silex Framework with $app->json() ?

Thanks.


Solution

  • As i know - you cannot do that in silex. Use json_encode() instead. But if you will find better solution, share it please.