Added sample JSON functionality.