Very unstable JSON parsing of API (work in progress)