owasp-java-encoder icon indicating copy to clipboard operation
owasp-java-encoder copied to clipboard

Create a encodeForJSON() function

Open jmanico opened this issue 5 years ago • 6 comments

We should create a function to safely embed JSON on a webpage simular to to what https://github.com/yahoo/serialize-javascript accomplishes.

jmanico avatar Jul 28 '20 22:07 jmanico

This would be a great feature as we have needed something similar in the past.

melloware avatar Jul 29 '20 12:07 melloware

Can I try this?

Infernalbronco avatar Jan 16 '21 13:01 Infernalbronco

Go for it :)

-- Jim Manico @Manicode

On Jan 16, 2021, at 3:19 AM, Akshay Mall [email protected] wrote:

 Can I try this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

jmanico avatar Jan 16 '21 17:01 jmanico

@jmanico Can u give any pointers from where I can start studying for this?

Infernalbronco avatar Jan 17 '21 05:01 Infernalbronco

Maybe this will point you in the right direction?

https://phppot.com/php/php-json-encode-and-decode/#:~:text=In%20PHP%2C%20json_encode()%20is,reflect%20effects%20on%20encoding%20behavior.

or

https://github.com/yahoo/serialize-javascript

?

jmanico avatar Jul 20 '21 16:07 jmanico