schmittjoh/JMSSerializerBundle — comment on commit bf10c3ede2eb1907b756ec59114b38fc341d9d98
File: Twig/SerializerExtension.php line 45
By stof:

@weaverryan except that the serializer does not take care of the escaping so it is not always safe. If the end user want to consider it as safe because his goal was to set a JS object, it should be done explicitly IMO (and btw, the core ``json_encode`` filter is not marked as safe either)