Loading state from json