Standalone JSON helper