stateinfo will return hash, state_info returns json