add js/json helper

Signed-off-by: Hagen Paul Pfeifer <hagen@jauu.net>