Ugly code! JSON parsing first try. SHOULD REFACTOR - BIG TIME!
Implemented JSON parsing, needs REFACTORING - BADLY!