switch sample file to JSON