Modify renderRstToJson to use the json library