Updated Backend class to parse received JSON