[1] http://winterbe.com/posts/2014/04/05/java8-nashorn-tutorial/
A modern JS implementation should also have a JSON parser
Or the other way around. Think about something like MUMPS.