I am looking for a way to reverse the output of the JSON.stringify function specifically for node.js. My goal is to generate code snippets for various programming languages by converting JavaScript structures into their native counterparts in python, PHP, and other languages.
For example, from this source: {"a": 5, "b": true, "c": null}
To this target in python: {"a": 5, "b": True, "c": None}
And this target in php:
array("a" => 5, "b" => true, "c" => null)
Is there a simple method to achieve this, without having to create my own code generator?