Output JavaScript objects from a JSON string input. And do the same the other way.