Fixing issue with josn parsing