There is no good way to move back and forth from tables to JSON. Whenever you work with hierarchical data (JSON, XML, YAML, HTML. etc.) moving to tables is a bit of interpretation. The engine needs to understand intent which is hard.
When working with these structures you can try and work within the SAS libname JSON engine. If you only have a few changes, and the structure remains intact, consider just treating it as a text file and doing a regex replace. If not, roll your own using data step and filenames. Much easier to control the layout. My view is not to allow SAS to intelligently guess what you want: just roll your own.
Try the JSON libname first, however, and see if it does what you want.
BTW, we face the same issue in .NET which is the 'intent' when switching between tables and object-oriented structures like JSON.
... View more