cross platform JSON utility