Fixed JSON parsing. Updated specs.
Added parsing spec.