Updated with working JSON encode test!