JSON is a pure data exchange format. Basically you only have to deal with JSON in 2 places in a program: Once when reading JSON data and once when outputting data.
In between it should not really matter that the data used to be JSON or should be converted to it.
You should not need any special intermediate structures but only the elements that the respective programming language provides anyway.
This is exactly the approach of this UDF:
There is the function _JSON_Parse()