Fixed unknown variable errors in json requests.